xfs: merge xfs_dir2_data_freescan and xfs_dir2_data_freescan_int
There is no real need for xfs_dir2_data_freescan wrapper, so rename xfs_dir2_data_freescan_int to xfs_dir2_data_freescan and let the callers dereference the mount pointer from the inode. 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
957ee13e20
commit
ae42976de7
@@ -608,7 +608,7 @@ xfs_dir2_data_freeremove(
|
||||
* Given a data block, reconstruct its bestfree map.
|
||||
*/
|
||||
void
|
||||
xfs_dir2_data_freescan_int(
|
||||
xfs_dir2_data_freescan(
|
||||
struct xfs_mount *mp,
|
||||
struct xfs_dir2_data_hdr *hdr,
|
||||
int *loghead)
|
||||
@@ -655,15 +655,6 @@ xfs_dir2_data_freescan_int(
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
xfs_dir2_data_freescan(
|
||||
struct xfs_inode *dp,
|
||||
struct xfs_dir2_data_hdr *hdr,
|
||||
int *loghead)
|
||||
{
|
||||
return xfs_dir2_data_freescan_int(dp->i_mount, hdr, loghead);
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize a data block at the given block number in the directory.
|
||||
* Give back the buffer for the created block.
|
||||
|
Reference in New Issue
Block a user