summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2023-09-28 19:03:56 +0300
committerTheodore Ts'o <tytso@mit.edu>2023-10-06 05:32:15 +0300
commitd2f7cf40ea89b486fb7a25f5ab9a5d3ce26fb4bb (patch)
treeaed4d3606cbe21c144ef14d31eeaf1b6fa4a26f4 /fs/ext4/ext4.h
parent61187fce8600e8ef90e601be84f9d0f3222c1206 (diff)
downloadlinux-d2f7cf40ea89b486fb7a25f5ab9a5d3ce26fb4bb.tar.xz
ext4: make state in ext4_mb_mark_bb to be bool
As state could only be either 0 or 1, just make it bool. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com> Link: https://lore.kernel.org/r/20230928160407.142069-2-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 5ab49226cd9f..8ccebe0d4fbc 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2926,7 +2926,7 @@ extern int ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
extern int ext4_trim_fs(struct super_block *, struct fstrim_range *);
extern void ext4_process_freed_data(struct super_block *sb, tid_t commit_tid);
extern void ext4_mb_mark_bb(struct super_block *sb, ext4_fsblk_t block,
- int len, int state);
+ int len, bool state);
static inline bool ext4_mb_cr_expensive(enum criteria cr)
{
return cr >= CR_GOAL_LEN_SLOW;