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)
commit371cdc0700c778b94ae8fa2c7d99401f13070d8f
tree755f1b23216a0bed3a3f9e531351ab81b7fa581e
parent4325cb2293817cef3611c43d7a27d0937d1e6962
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