xfs: devirtualize ->sf_entsize and ->sf_nextentry
Just check for file-type enabled directories directly. 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

parent
84915e1bdd
commit
50f6bb6b7a
@@ -1225,7 +1225,7 @@ xfs_dir2_sf_to_block(
|
||||
if (++i == sfp->count)
|
||||
sfep = NULL;
|
||||
else
|
||||
sfep = dp->d_ops->sf_nextentry(sfp, sfep);
|
||||
sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep);
|
||||
}
|
||||
/* Done with the temporary buffer */
|
||||
kmem_free(sfp);
|
||||
|
Reference in New Issue
Block a user