diff options
author | Christoph Hellwig <hch@lst.de> | 2023-02-10 08:48:41 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-04-03 15:42:54 +0200 |
commit | 0f3e963cc5e6c3a305be76d912aa2f07bbc02249 (patch) | |
tree | d280533e41b8ea521c6a343e87755360348e0cd9 /fs/btrfs/compression.c | |
parent | 8a54a5dc0b0cb133f8d50038ff1e397216fd7b10 (diff) | |
download | linux-next-0f3e963cc5e6c3a305be76d912aa2f07bbc02249.tar.gz |
btrfs: fold finish_compressed_bio_write into btrfs_finish_compressed_write_work
Fold finish_compressed_bio_write into its only caller as there is no
reason to keep them separate.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 6a23d6cc29aa..5b1de1c19991 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -220,8 +220,11 @@ static noinline void end_compressed_writeback(const struct compressed_bio *cb) /* the inode may be gone now */ } -static void finish_compressed_bio_write(struct compressed_bio *cb) +static void btrfs_finish_compressed_write_work(struct work_struct *work) { + struct compressed_bio *cb = + container_of(work, struct compressed_bio, write_end_work); + /* * Ok, we're the last bio for this extent, step one is to call back * into the FS and do all the end_io operations. @@ -238,14 +241,6 @@ static void finish_compressed_bio_write(struct compressed_bio *cb) bio_put(&cb->bbio.bio); } -static void btrfs_finish_compressed_write_work(struct work_struct *work) -{ - struct compressed_bio *cb = - container_of(work, struct compressed_bio, write_end_work); - - finish_compressed_bio_write(cb); -} - /* * Do the cleanup once all the compressed pages hit the disk. This will clear * writeback on the file pages and free the compressed pages. |