]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: remove scratch field from struct xfs_gc_bio
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 25 Feb 2026 22:46:46 +0000 (07:46 +0900)
committerCarlos Maiolino <cem@kernel.org>
Wed, 4 Mar 2026 08:34:12 +0000 (09:34 +0100)
The scratch field in struct xfs_gc_bio is unused. Remove it.

Fixes: 102f444b57b3 ("xfs: rework zone GC buffer management")
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_gc.c

index 7efeecd2d85f5162d1dfab227e3a5118e15042c1..309f700985243ef5afa7c6515059147491e99f37 100644 (file)
@@ -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;