mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 10:31:08 +00:00
ext4: fix wrong unit use in ext4_mb_new_blocks
commit 2ec6d0a5ea
upstream.
Function ext4_free_blocks_simple needs count in cluster. Function
ext4_free_blocks accepts count in block. Convert count to cluster
to fix the mismatch.
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: stable@kernel.org
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20230603150327.3596033-12-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2038d35749
commit
e861961f3a
1 changed files with 1 additions and 1 deletions
|
@ -6166,7 +6166,7 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode,
|
|||
}
|
||||
|
||||
if (sbi->s_mount_state & EXT4_FC_REPLAY) {
|
||||
ext4_free_blocks_simple(inode, block, count);
|
||||
ext4_free_blocks_simple(inode, block, EXT4_NUM_B2C(sbi, count));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue