btrfs: use dummy extent buffer for super block sys chunk array read
authorQu Wenruo <wqu@suse.com>
Thu, 13 Jan 2022 05:22:08 +0000 (13:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 16:02:02 +0000 (17:02 +0100)
commit2a2482be8939fdd5dee09a8d4cbb430ec98a7028
tree7fb2126b54e2d99e9470058bfe52dd5bb49267e0
parente38e4c04d7b7d7cbfe6877493b88637988301083
btrfs: use dummy extent buffer for super block sys chunk array read

In function btrfs_read_sys_array(), we allocate a real extent buffer
using btrfs_find_create_tree_block().

Such extent buffer will be even cached into buffer_radix tree, and using
btree inode address space.

However we only use such extent buffer to enable the accessors, thus we
don't even need to bother using real extent buffer, a dummy one is
what we really need.

And for dummy extent buffer, we no longer need to do any special
handling for the first page, as subpage helper is already doing it
properly.

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