Skip to content

Commit fc96be9

Browse files
committed
xfs: replace open-coded XFS_ICI_NO_TAG
Use XFS_ICI_NO_TAG instead of -1 when appropriate. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Brian Foster <[email protected]>
1 parent 3737bb2 commit fc96be9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/xfs/xfs_icache.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ xfs_inode_ag_walk(
835835

836836
rcu_read_lock();
837837

838-
if (tag == -1)
838+
if (tag == XFS_ICI_NO_TAG)
839839
nr_found = radix_tree_gang_lookup(&pag->pag_ici_root,
840840
(void **)batch, first_index,
841841
XFS_LOOKUP_BATCH);
@@ -993,8 +993,8 @@ xfs_inode_ag_iterator_flags(
993993
ag = 0;
994994
while ((pag = xfs_perag_get(mp, ag))) {
995995
ag = pag->pag_agno + 1;
996-
error = xfs_inode_ag_walk(mp, pag, execute, flags, args, -1,
997-
iter_flags);
996+
error = xfs_inode_ag_walk(mp, pag, execute, flags, args,
997+
XFS_ICI_NO_TAG, iter_flags);
998998
xfs_perag_put(pag);
999999
if (error) {
10001000
last_error = error;

0 commit comments

Comments
 (0)