xfs: devirtualize ->data_entry_tag_p
Replace the ->data_entry_tag_p dir ops method with a directly called xfs_dir2_data_entry_tag_p helper that takes care of the differences between the directory format with and without the file type field. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

szülő
fdbb8c5b80
commit
7e8ae7bd1c
@@ -271,7 +271,7 @@ xchk_dir_rec(
|
||||
/* Retrieve the entry, sanity check it, and compare hashes. */
|
||||
ino = be64_to_cpu(dent->inumber);
|
||||
hash = be32_to_cpu(ent->hashval);
|
||||
tag = be16_to_cpup(dp->d_ops->data_entry_tag_p(dent));
|
||||
tag = be16_to_cpup(xfs_dir2_data_entry_tag_p(mp, dent));
|
||||
if (!xfs_verify_dir_ino(mp, ino) || tag != off)
|
||||
xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno);
|
||||
if (dent->namelen == 0) {
|
||||
|
Reference in New Issue
Block a user