diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-30 15:45:01 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-10-19 10:39:10 -0700 |
commit | 7e7f9096b949e8bc1dbee026e35e48e8596025c5 (patch) | |
tree | cbf4f5e827738d07a2e031c2eade128c307f3370 /fs | |
parent | 738363de1c4106f6256c939d6bd8a8a523f082df (diff) |
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 <darrick.wong@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_icache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index 04bce8f382a1..c5f56c5b2389 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -795,11 +795,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; @@ -851,7 +851,7 @@ restart: 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. */ |