mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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>
This commit is contained in:
committed by
Theodore Ts'o
parent
61187fce86
commit
d2f7cf40ea
@@ -1806,7 +1806,7 @@ static int ext4_fc_replay_add_range(struct super_block *sb,
|
||||
* at the end of the FC replay using our array of
|
||||
* modified inodes.
|
||||
*/
|
||||
ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, 0);
|
||||
ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, false);
|
||||
goto next;
|
||||
}
|
||||
|
||||
@@ -1875,7 +1875,7 @@ ext4_fc_replay_del_range(struct super_block *sb,
|
||||
if (ret > 0) {
|
||||
remaining -= ret;
|
||||
cur += ret;
|
||||
ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, 0);
|
||||
ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, false);
|
||||
} else {
|
||||
remaining -= map.m_len;
|
||||
cur += map.m_len;
|
||||
@@ -1934,12 +1934,12 @@ static void ext4_fc_set_bitmaps_and_counters(struct super_block *sb)
|
||||
if (!IS_ERR(path)) {
|
||||
for (j = 0; j < path->p_depth; j++)
|
||||
ext4_mb_mark_bb(inode->i_sb,
|
||||
path[j].p_block, 1, 1);
|
||||
path[j].p_block, 1, true);
|
||||
ext4_free_ext_path(path);
|
||||
}
|
||||
cur += ret;
|
||||
ext4_mb_mark_bb(inode->i_sb, map.m_pblk,
|
||||
map.m_len, 1);
|
||||
map.m_len, true);
|
||||
} else {
|
||||
cur = cur + (map.m_len ? map.m_len : 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user