btrfs: don't clear async_chunk->inode in async_cow_start
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2023 15:31:33 +0000 (17:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:15 +0000 (14:52 +0200)
commit3134508e47df8f721d1bc6a31980d10cb71f3f18
tree49821eeebce044c98e4c8a466d7905bde7dda7c7
parent67583468086c2a12602b915184118c4863402b02
btrfs: don't clear async_chunk->inode in async_cow_start

Now that the ->inode check isn't needed in submit_compressed_extents
any more, there is no reason to clear the field early.  Always keep
the inode around until the work item is finished and remove the special
casing, and the counting of compressed extents in compress_file_range.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c