btrfs: use a separate end_io handler for extent_buffer writing
authorChristoph Hellwig <hch@lst.de>
Wed, 3 May 2023 15:24:34 +0000 (17:24 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:28 +0000 (13:59 +0200)
commitcd88a4fdbf1e3d55d852dd67c38155ee3ee3469f
tree0f5cada62a79fa7431ef518530f29d5dc77a2b40
parentb51e6b4bda5bddbd002ace239eb5eadd4d729039
btrfs: use a separate end_io handler for extent_buffer writing

Now that we always use a single bio to write an extent_buffer, the buffer
can be passed to the end_io handler as private data.  This allows
to simplify the metadata write end I/O handler, and merge the subpage
end_io handler into the main one.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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/extent_io.c