summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/attr.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-12-02 12:25:44 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-12-06 14:59:18 -0800
commit1279d5d7b88bbb58ec2dcdafd84ea3980b01c372 (patch)
tree293ef77711c713448ad516f6aef480572c971170 /fs/xfs/scrub/attr.h
parent2c74ee8057a3f319c7a5ec250ee20d5b638d9ca3 (diff)
xfs: scrub should mark a directory corrupt if any entries cannot be iget'drandom-fixes-5.11_2020-12-06
It's possible that xfs_iget can return EINVAL for inodes that the inobt thinks are free, or ENOENT for inodes that look free. If this is the case, mark the directory corrupt immediately when we check ftype. Note that we already check the ftype of the '.' and '..' entries, so we can skip the iget part since we already know the inode type for '.' and we have a separate parent pointer scrubber for '..'. Fixes: a5c46e5e8912 ("xfs: scrub directory metadata") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/attr.h')
0 files changed, 0 insertions, 0 deletions