• C
    btrfs: don't use btrfs_bio_wq_end_io for compressed writes · fed8a72d
    Christoph Hellwig 提交于
    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: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    fed8a72d
disk-io.c 147.6 KB