]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: tree-checker: Refactor root key check into separate function
authorQu Wenruo <wqu@suse.com>
Mon, 9 Dec 2019 10:54:34 +0000 (18:54 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:40:56 +0000 (16:40 +0100)
commit57a0e67491914f6187b1847ee3b1a01a556b9238
tree0fe13c135f0b1ff26cdb0401822327dd3dabdd1b
parentc23c77b097dc52d5c166720467a62058e4a3c058
btrfs: tree-checker: Refactor root key check into separate function

ROOT_ITEM key check itself is not as simple as single line check, and
will be reused for both ROOT_ITEM and DIR_ITEM/DIR_INDEX location key
check, so refactor such check into check_root_key().

Also since we are here, fix a comment error about ROOT_ITEM offset,
which is transid of snapshot creation, not some "older kernel behavior".

Reviewed-by: Nikolay Borisov <nborisov@suse.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/tree-checker.c