xfs: remove __xfs_icache_free_eofblocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 May 2020 20:08:48 +0000 (13:08 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 May 2020 15:49:27 +0000 (08:49 -0700)
This is now a pointless wrapper, so kill it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_icache.c

index 323fe9a776008df71d98fdf9c1a42a3d8ec128bd..bd06edbac5ceddf7c98e30524a5e9de00e985f57 100644 (file)
@@ -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);
 }
 
@@ -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);
 }