Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8417ff1 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Jaegeuk Kim
Browse files

f2fs: use true and false for boolean values



Return statements in functions returning bool should use true or false
instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 59822402
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1335,7 +1335,7 @@ static inline bool is_idle(struct f2fs_sb_info *sbi)
	struct request_list *rl = &q->root_rl;

	if (rl->count[BLK_RW_SYNC] || rl->count[BLK_RW_ASYNC])
		return 0;
		return false;

	return f2fs_time_over(sbi, REQ_TIME);
}
@@ -3401,7 +3401,7 @@ static inline bool f2fs_may_encrypt(struct inode *inode)

	return (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode));
#else
	return 0;
	return false;
#endif
}