Commit 576d30ec authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: add missing nrext64 inode flag check to scrub

Add this missing check that the superblock nrext64 flag is set if the
inode flag is set.

Fixes: 9b7d16e3 ("xfs: Introduce XFS_DIFLAG2_NREXT64 and associated helpers")
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 259ba1d3
...@@ -342,6 +342,10 @@ xchk_inode_flags2( ...@@ -342,6 +342,10 @@ xchk_inode_flags2(
if (xfs_dinode_has_bigtime(dip) && !xfs_has_bigtime(mp)) if (xfs_dinode_has_bigtime(dip) && !xfs_has_bigtime(mp))
goto bad; goto bad;
/* no large extent counts without the filesystem feature */
if ((flags2 & XFS_DIFLAG2_NREXT64) && !xfs_has_large_extent_counts(mp))
goto bad;
return; return;
bad: bad:
xchk_ino_set_corrupt(sc, ino); xchk_ino_set_corrupt(sc, ino);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment