xfs: devirtualize ->data_get_ftype and ->data_put_ftype
Replace the ->data_get_ftype and ->data_put_ftype dir ops methods with directly called xfs_dir2_data_get_ftype and xfs_dir2_data_put_ftype helpers 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
1848b607a9
commit
59b8b46505
@@ -61,6 +61,10 @@ struct xfs_dir2_data_free *xfs_dir2_data_bestfree_p(struct xfs_mount *mp,
|
||||
struct xfs_dir2_data_hdr *hdr);
|
||||
__be16 *xfs_dir2_data_entry_tag_p(struct xfs_mount *mp,
|
||||
struct xfs_dir2_data_entry *dep);
|
||||
uint8_t xfs_dir2_data_get_ftype(struct xfs_mount *mp,
|
||||
struct xfs_dir2_data_entry *dep);
|
||||
void xfs_dir2_data_put_ftype(struct xfs_mount *mp,
|
||||
struct xfs_dir2_data_entry *dep, uint8_t ftype);
|
||||
|
||||
#ifdef DEBUG
|
||||
extern void xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp);
|
||||
|
Reference in New Issue
Block a user