Skip to content

Commit

Permalink
xfs: remove __xfs_icache_free_eofblocks
Browse files Browse the repository at this point in the history
This is now a pointless wrapper, so kill it.

Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
  • Loading branch information
djwong committed May 27, 2020
1 parent 390600f commit 8921a0f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions fs/xfs/xfs_icache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1512,22 +1512,12 @@ xfs_inode_free_eofblocks(
return ret;
}

static int
__xfs_icache_free_eofblocks(
struct xfs_mount *mp,
struct xfs_eofblocks *eofb,
int (*execute)(struct xfs_inode *ip, void *args),
int tag)
{
return xfs_inode_ag_iterator(mp, 0, execute, eofb, tag);
}

int
xfs_icache_free_eofblocks(
struct xfs_mount *mp,
struct xfs_eofblocks *eofb)
{
return __xfs_icache_free_eofblocks(mp, eofb, xfs_inode_free_eofblocks,
return xfs_inode_ag_iterator(mp, 0, xfs_inode_free_eofblocks, eofb,
XFS_ICI_EOFBLOCKS_TAG);
}

Expand Down Expand Up @@ -1789,7 +1779,7 @@ xfs_icache_free_cowblocks(
struct xfs_mount *mp,
struct xfs_eofblocks *eofb)
{
return __xfs_icache_free_eofblocks(mp, eofb, xfs_inode_free_cowblocks,
return xfs_inode_ag_iterator(mp, 0, xfs_inode_free_cowblocks, eofb,
XFS_ICI_COWBLOCKS_TAG);
}

Expand Down

0 comments on commit 8921a0f

Please sign in to comment.