+22
−22
+5
−2
+1
−1
+12
−18
+0
−2
Loading
Compressed write bio completion is the only user of btrfs_bio_wq_end_io for writes, and the use of btrfs_bio_wq_end_io is a little suboptimal here as we only real need user context for the final completion of a compressed_bio structure, and not every single bio completion. Add a work_struct to struct compressed_bio instead and use that to call finish_compressed_bio_write. This allows to remove all handling of write bios in the btrfs_bio_wq_end_io infrastructure. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
David Sterba <dsterba@suse.com>