]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: make set_btree_ioerr accept extent buffer and be subpage compatible
authorQu Wenruo <wqu@suse.com>
Thu, 25 Mar 2021 07:14:44 +0000 (15:14 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Apr 2021 13:35:58 +0000 (15:35 +0200)
commit542177a8c7b4611d37213a54e8f2defd66ad5200
tree97c7dd0a635fc4cd92997ef49f8e0373a9659461
parent811a27f678cd3b67abdeab1081c0dad68cf4d30b
btrfs: make set_btree_ioerr accept extent buffer and be subpage compatible

Current set_btree_ioerr() only accepts @page parameter and grabs extent
buffer from page::private.  This works fine for sector size == PAGE_SIZE
case, but not for subpage case.

Add an extra parameter, @eb, for callers to pass extent buffer to this
function, so that subpage code can reuse this function.

And also add subpage special handling to update
btrfs_subpage::error_bitmap.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c