Commit fc96be95 authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: replace open-coded XFS_ICI_NO_TAG

Use XFS_ICI_NO_TAG instead of -1 when appropriate.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
parent 3737bb2c
......@@ -835,7 +835,7 @@ xfs_inode_ag_walk(
rcu_read_lock();
if (tag == -1)
if (tag == XFS_ICI_NO_TAG)
nr_found = radix_tree_gang_lookup(&pag->pag_ici_root,
(void **)batch, first_index,
XFS_LOOKUP_BATCH);
......@@ -993,8 +993,8 @@ xfs_inode_ag_iterator_flags(
ag = 0;
while ((pag = xfs_perag_get(mp, ag))) {
ag = pag->pag_agno + 1;
error = xfs_inode_ag_walk(mp, pag, execute, flags, args, -1,
iter_flags);
error = xfs_inode_ag_walk(mp, pag, execute, flags, args,
XFS_ICI_NO_TAG, iter_flags);
xfs_perag_put(pag);
if (error) {
last_error = error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment