]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: introduce subpage metadata validation check
authorQu Wenruo <wqu@suse.com>
Tue, 26 Jan 2021 08:33:59 +0000 (16:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:59:03 +0000 (22:59 +0100)
commit2f02ec41e166573e87163b1849b1d3b71a625910
tree755f1b23216a0bed3a3f9e531351ab81b7fa581e
parent7d27f7dd8c4b57bea56bda7c233bc4d74d649357
btrfs: introduce subpage metadata validation check

For subpage metadata validation check, there are some differences:

- Read must finish in one bvec
  Since we're just reading one subpage range in one page, it should
  never be split into two bios nor two bvecs.

- How to grab the existing eb
  Instead of grabbing eb using page->private, we have to go search radix
  tree as we don't have any direct pointer at hand.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
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/disk-io.c