aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-12-25 10:45:59 +0800
committerTheodore Ts'o <tytso@mit.edu>2020-01-17 16:24:53 -0500
commit4756ee183f25b1fa2a7306a439da3bcd687244e0 (patch)
tree8ef30c6a56d842ab88c46b6e8988ee5855b3e279 /fs/ext4
parentext4: uninline ext4_inode_journal_mode() (diff)
downloadlinux-dev-4756ee183f25b1fa2a7306a439da3bcd687244e0.tar.xz
linux-dev-4756ee183f25b1fa2a7306a439da3bcd687244e0.zip
ext4: use true,false for bool variable
Fixes coccicheck warning: fs/ext4/extents.c:5271:6-12: WARNING: Assignment of 0/1 to bool variable fs/ext4/extents.c:5287:4-10: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/1577241959-138695-1-git-send-email-zhengbin13@huawei.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index ee83fe7c98aa..a7f90470b1dc 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -5269,7 +5269,7 @@ ext4_ext_shift_path_extents(struct ext4_ext_path *path, ext4_lblk_t shift,
{
int depth, err = 0;
struct ext4_extent *ex_start, *ex_last;
- bool update = 0;
+ bool update = false;
depth = path->p_depth;
while (depth >= 0) {
@@ -5285,7 +5285,7 @@ ext4_ext_shift_path_extents(struct ext4_ext_path *path, ext4_lblk_t shift,
goto out;
if (ex_start == EXT_FIRST_EXTENT(path[depth].p_hdr))
- update = 1;
+ update = true;
while (ex_start <= ex_last) {
if (SHIFT == SHIFT_LEFT) {