Commit 7e88d314 authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: use bool for done in xfs_inode_ag_walk

This is a boolean variable, so use the bool type.
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 39b1cfd7
......@@ -823,11 +823,11 @@ xfs_inode_ag_walk(
uint32_t first_index;
int last_error = 0;
int skipped;
int done;
bool done;
int nr_found;
restart:
done = 0;
done = false;
skipped = 0;
first_index = 0;
nr_found = 0;
......@@ -879,7 +879,7 @@ xfs_inode_ag_walk(
continue;
first_index = XFS_INO_TO_AGINO(mp, ip->i_ino + 1);
if (first_index < XFS_INO_TO_AGINO(mp, ip->i_ino))
done = 1;
done = true;
}
/* unlock now we've grabbed the inodes. */
......
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