]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't treat unknown di_flags2 as corruption in scrub
authorEric Sandeen <sandeen@sandeen.net>
Sat, 29 Sep 2018 03:49:00 +0000 (13:49 +1000)
committerDave Chinner <david@fromorbit.com>
Sat, 29 Sep 2018 03:49:00 +0000 (13:49 +1000)
commit183824c5fd17dfd3ab94a035fba09828a99538b3
tree0cf0008a0fcd989798e8862e6fd863dd0478123a
parent29380e317cda8f9224271b67a1992363799a2abc
xfs: don't treat unknown di_flags2 as corruption in scrub

xchk_inode_flags2() currently treats any di_flags2 values that the
running kernel doesn't recognize as corruption, and calls
xchk_ino_set_corrupt() if they are set.  However, it's entirely possible
that these flags were set in some newer kernel and are quite valid,
but ignored in this kernel.

(Validators don't care one bit about unknown di_flags2.)

Call xchk_ino_set_warning instead, because this may or may not actually
indicate a problem.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_format.h
fs/xfs/scrub/inode.c