summaryrefslogtreecommitdiff
path: root/crypto/crct10dif_generic.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-02-27 10:36:28 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-03-10 17:42:24 -0700
commitc502bb68b2d0ac62c43e80a8e3bb4682f1fb9f4d (patch)
treeedb88dc966384156705c6c9188b1f5a80b97b902 /crypto/crct10dif_generic.c
parent103e58a60677e8346ff406b91186a9caf53316d1 (diff)
xfs: scrub should mark dir corrupt if entry points to unallocated inodescrub-fixes_2020-03-10
In xchk_dir_check_ftype, we should mark the directory corrupt if we try to _iget a directory entry's inode pointer and the inode btree says the inode is not allocated. This involves changing the IGET call to force the inobt lookup to return EINVAL if the inode isn't allocated; and rearranging the code so that we always perform the iget. We can also remove the !hasftype code from the function, because any DT_ flags we encounter on those filesystems were synthesized in core, not read in from disk. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'crypto/crct10dif_generic.c')
0 files changed, 0 insertions, 0 deletions