diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:55:03 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:58:59 -0700 |
commit | 40cb8613d6122ca80a9e42e4cecc4d308c3b80fb (patch) | |
tree | fa904ca14d9e8629c13145aa1efbc21b86f23b72 /fs/xfs/libxfs/xfs_ialloc.c | |
parent | ab97f4b1c030750f2475bf4da8a9554d02206640 (diff) |
xfs: check unused nlink fields in the ondisk inode
v2/v3 inodes use di_nlink and not di_onlink; and v1 inodes use di_onlink
and not di_nlink. Whichever field is not in use, make sure its contents
are zero, and teach xfs_scrub to fix that if it is.
This clears a bunch of missing scrub failure errors in xfs/385 for
core.onlink.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.c')
0 files changed, 0 insertions, 0 deletions