struct xfs_zone_scratch is undefined in 7.0-rc1
Hi,
struct xfs_zone_scratch is undefined in 7.0-rc1.
# grep xfs_zone_scratch -nr * fs/xfs/xfs_zone_gc.c:99: struct xfs_zone_scratch *scratch; #
Could we change 'struct xfs_zone_scratch *' to 'void *', or just delete this var?
Best Regards
Wang Yugui ([email protected])
2026/02/25
Quoted 10 lines · Wang Yugui
Hi,
struct
xfs_zone_scratchis undefined in 7.0-rc1.# grep xfs_zone_scratch -nr * fs/xfs/xfs_zone_gc.c:99: struct xfs_zone_scratch *scratch; #Could we change 'struct
xfs_zone_scratch*' to 'void *', or just delete this var?
This should do it:
fs/xfs/xfs_zone_gc.c +0 -2
@@ -96,7 +96,6 @@ struct xfs_gc_bio {*/ xfs_fsblock_t old_startblock;xfs_daddr_t new_daddr; -struct xfs_zone_scratch *scratch;/* Are we writing to a sequential write required zone? */ bool is_seq;
@@ -779,7 +778,6 @@ xfs_zone_gc_split_write(ihold (VFS_I (chunk->ip)); split_chunk->ip = chunk->ip; split_chunk->is_seq = chunk->is_seq; - split_chunk->scratch = chunk->scratch; split_chunk->offset = chunk->offset; split_chunk->len = split_len; split_chunk->old_startblock = chunk->old_startblock;
Signature · 2 lines
Damien Le Moal Western Digital Research
Quoted 5 lines · Damien Le Moal
Quoted 4 lines · Wang Yugui
Hi,
struct
xfs_zone_scratchis undefined in 7.0-rc1.
Quoted 8 lines
Quoted 6 lines
# grep xfs_zone_scratch -nr * fs/xfs/xfs_zone_gc.c:99: struct xfs_zone_scratch *scratch; #Could we change 'struct
xfs_zone_scratch*' to 'void *', or just delete this var?This should do it:
Can you send a formal patch?
Quoted 10 lines · Christoph Hellwig
Quoted 9 lines · Damien Le Moal
Quoted 8 lines · Wang Yugui
Hi,
struct
xfs_zone_scratchis undefined in 7.0-rc1.# grep xfs_zone_scratch -nr * fs/xfs/xfs_zone_gc.c:99: struct xfs_zone_scratch *scratch; #
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Could we change 'struct
xfs_zone_scratch*' to 'void *', or just delete this var?This should do it:
Can you send a formal patch?
Done.
Signature · 2 lines
Damien Le Moal Western Digital Research