]> Git Repo - linux.git/commit
btrfs: tree-checker: Refactor inode key check into seperate function
authorQu Wenruo <[email protected]>
Mon, 9 Dec 2019 10:54:33 +0000 (18:54 +0800)
committerDavid Sterba <[email protected]>
Mon, 20 Jan 2020 15:40:56 +0000 (16:40 +0100)
commitc23c77b097dc52d5c166720467a62058e4a3c058
tree1353358a0fd836131a31234bff7a4634cbd22e94
parentc3053ebb0b8044d8360db0f6717f8fdcbde8c370
btrfs: tree-checker: Refactor inode key check into seperate function

Inode key check is not as easy as several lines, and it will be called
in more than one location (INODE_ITEM check and
DIR_ITEM/DIR_INDEX/XATTR_ITEM location key check).

So here refactor such check into check_inode_key().  And add extra
checks for XATTR_ITEM.

Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/tree-checker.c
This page took 0.051922 seconds and 4 git commands to generate.