xfs: devirtualize ->data_entsize
Replace the ->data_entsize dir ops method with a directly called xfs_dir2_data_entsize 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

parent
5c072127d3
commit
fdbb8c5b80
@@ -57,6 +57,8 @@ extern int xfs_dir2_leaf_to_block(struct xfs_da_args *args,
|
||||
struct xfs_buf *lbp, struct xfs_buf *dbp);
|
||||
|
||||
/* xfs_dir2_data.c */
|
||||
int xfs_dir2_data_entsize(struct xfs_mount *mp, int n);
|
||||
|
||||
#ifdef DEBUG
|
||||
extern void xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user