Skip to content

Commit 7e88d31

Browse files
committed
xfs: use bool for done in xfs_inode_ag_walk
This is a boolean variable, so use the bool type. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Brian Foster <[email protected]>
1 parent 39b1cfd commit 7e88d31

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
@@ -823,11 +823,11 @@ xfs_inode_ag_walk(
823823
uint32_t first_index;
824824
int last_error = 0;
825825
int skipped;
826-
int done;
826+
bool done;
827827
int nr_found;
828828

829829
restart:
830-
done = 0;
830+
done = false;
831831
skipped = 0;
832832
first_index = 0;
833833
nr_found = 0;
@@ -879,7 +879,7 @@ xfs_inode_ag_walk(
879879
continue;
880880
first_index = XFS_INO_TO_AGINO(mp, ip->i_ino + 1);
881881
if (first_index < XFS_INO_TO_AGINO(mp, ip->i_ino))
882-
done = 1;
882+
done = true;
883883
}
884884

885885
/* unlock now we've grabbed the inodes. */

0 commit comments

Comments
 (0)