commit | 40cb8613d6122ca80a9e42e4cecc4d308c3b80fb | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <djwong@kernel.org> | Mon Apr 15 14:55:03 2024 -0700 |
committer | Darrick J. Wong <djwong@kernel.org> | Mon Apr 15 14:58:59 2024 -0700 |
tree | fa904ca14d9e8629c13145aa1efbc21b86f23b72 | |
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>