btrfs: factor out a helper to end a single sector buffer I/O
authorChristoph Hellwig <hch@lst.de>
Sun, 22 May 2022 11:47:50 +0000 (13:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:44:33 +0000 (17:44 +0200)
commita5aa7ab6e77b2267638dec6a9522b57421522d8c
treec59d2aacb106c894b42a503be8e334f69313f089
parentfd5a6f63cb29dd2c75e59c6dd60650f398855ecf
btrfs: factor out a helper to end a single sector buffer I/O

Add a helper to end I/O on a single sector, which will come in handy
with the new read repair code.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.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