diff options
author | Qu Wenruo <wqu@suse.com> | 2019-12-09 18:54:34 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-01-20 16:40:56 +0100 |
commit | 57a0e67491914f6187b1847ee3b1a01a556b9238 (patch) | |
tree | 0fe13c135f0b1ff26cdb0401822327dd3dabdd1b /fs/fs_types.c | |
parent | c23c77b097dc52d5c166720467a62058e4a3c058 (diff) | |
download | linux-57a0e67491914f6187b1847ee3b1a01a556b9238.tar.gz linux-57a0e67491914f6187b1847ee3b1a01a556b9238.tar.bz2 linux-57a0e67491914f6187b1847ee3b1a01a556b9238.zip |
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>
Diffstat (limited to 'fs/fs_types.c')
0 files changed, 0 insertions, 0 deletions