]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: tree-checker: Remove comprehensive root owner check
authorQu Wenruo <wqu@suse.com>
Thu, 4 Apr 2019 03:47:07 +0000 (11:47 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:39 +0000 (19:02 +0200)
commitaf12a46698a83d39a279a6e25aceff2e05fb4e30
tree6c2785e665c822386f54f5416e7e8a2d04f63095
parent506ae77bee08cdcd02489177ec2ed833e4f0d41b
btrfs: tree-checker: Remove comprehensive root owner check

Commit 299a245ed534 ("Btrfs: detect corruption when non-root leaf has
zero item") introduced comprehensive root owner checker.

However it's pretty expensive tree search to locate the owner root,
especially when it get reused by mandatory read and write time
tree-checker.

This patch will remove that check, and completely rely on owner based
empty leaf check, which is much faster and still works fine for most
case.

And since we skip the old root owner check, now write time tree check
can be merged with btrfs_check_leaf_full().

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