diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-10-09 11:38:54 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-11 10:21:06 -0700 |
commit | 749f24f33e87c1706d716c283027595b72a034f3 (patch) | |
tree | f8c46c500374a87f6e78e4eb292d630c485e158a /fs/xfs/xfs_file.c | |
parent | 67f2ffe31d1a683170c2ba0ecc643e42a5fdd397 (diff) | |
download | linux-749f24f33e87c1706d716c283027595b72a034f3.tar.gz linux-749f24f33e87c1706d716c283027595b72a034f3.tar.bz2 linux-749f24f33e87c1706d716c283027595b72a034f3.zip |
xfs: Fix bool initialization/comparison
Bool initializations should use true and false. Bool tests don't need
comparisons.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 309e26c9dddb..56d0e526870c 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -764,7 +764,7 @@ xfs_file_fallocate( enum xfs_prealloc_flags flags = 0; uint iolock = XFS_IOLOCK_EXCL; loff_t new_size = 0; - bool do_file_insert = 0; + bool do_file_insert = false; if (!S_ISREG(inode->i_mode)) return -EINVAL; @@ -825,7 +825,7 @@ xfs_file_fallocate( error = -EINVAL; goto out_unlock; } - do_file_insert = 1; + do_file_insert = true; } else { flags |= XFS_PREALLOC_SET; |