summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/dir.c
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
commit2c74ee8057a3f319c7a5ec250ee20d5b638d9ca3 (patch)
tree2e517a55cee302f6308c32d7d9a6d8845210a9b8 /fs/xfs/scrub/dir.c
parentf1c5b4d654fe5065755293011408985feba7bd79 (diff)
xfs: fix parent pointer scrubber bailing out on unallocated inodes
xfs_iget can return -ENOENT for a file that the inobt thinks is allocated but has zeroed mode. This currently causes scrub to exit with an operational error instead of flagging this as a corruption. The end result is that scrub mistakenly reports the ENOENT to the user instead of "directory parent pointer corrupt" like we do for EINVAL. Fixes: 5927268f5a04 ("xfs: flag inode corruption if parent ptr doesn't get us a real inode") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/dir.c')
0 files changed, 0 insertions, 0 deletions