diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-05-21 13:08:49 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-05-27 08:49:27 -0700 |
commit | 7e88d31423e2874be03f8ebc6274c917f674743a (patch) | |
tree | 302bb64a10d3dc58b5502bfac55414c67119ea29 /fs/xfs | |
parent | 39b1cfd75b278f5cb1e58517f6ec1ac9ef16d9f4 (diff) | |
download | linux-stable-7e88d31423e2874be03f8ebc6274c917f674743a.tar.gz linux-stable-7e88d31423e2874be03f8ebc6274c917f674743a.tar.bz2 linux-stable-7e88d31423e2874be03f8ebc6274c917f674743a.zip |
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs')
-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 0f2edda5b08d..0adc6cc0b37e 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -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 @@ 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. */ |