summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_icache.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-03-11 13:42:56 -0800
committerDarrick J. Wong <djwong@kernel.org>2021-03-18 15:20:19 -0700
commit06dbbbc51e6132a8d822b644e503e21e6acbf0a1 (patch)
tree92e4167cfd59239c125dc2105d9307bc04514949 /fs/xfs/xfs_icache.h
parentd13b21d29774fb6d831c0672e3d2f732ac72eb6d (diff)
xfs: remove iter_flags parameter from xfs_inode_walk_*iwalk-remove-indirect-calls-5.13_2021-03-18
The sole user of the INEW_WAIT flag to xfs_inode_walk is a caller that is external to the inode cache. Since external callers have no business messing with INEW inodes or inode radix tree tags, we can get rid of the iter_flag entirely. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_icache.h')
-rw-r--r--fs/xfs/xfs_icache.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/xfs_icache.h b/fs/xfs/xfs_icache.h
index a20bb89e3a38..04e59b775432 100644
--- a/fs/xfs/xfs_icache.h
+++ b/fs/xfs/xfs_icache.h
@@ -34,11 +34,6 @@ struct xfs_eofblocks {
#define XFS_IGET_DONTCACHE 0x4
#define XFS_IGET_INCORE 0x8 /* don't read from disk or reinit */
-/*
- * flags for AG inode iterator
- */
-#define XFS_INODE_WALK_INEW_WAIT 0x1 /* wait on new inodes */
-
int xfs_iget(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino,
uint flags, uint lock_flags, xfs_inode_t **ipp);
@@ -68,7 +63,7 @@ void xfs_inode_clear_cowblocks_tag(struct xfs_inode *ip);
void xfs_blockgc_worker(struct work_struct *work);
-int xfs_inode_walk(struct xfs_mount *mp, int iter_flags,
+int xfs_inode_walk(struct xfs_mount *mp,
int (*execute)(struct xfs_inode *ip, void *args),
void *args);