Commit 5137d6c
ext4: fix insufficient credits calculation in ext4_meta_trans_blocks()
The calculation of journal credits in ext4_meta_trans_blocks() should
include pextents, as each extent separately may be allocated from a
different group and thus need to update different bitmap and group
descriptor block.
Fixes: 0e32d86 ("ext4: correct the journal credits calculations of allocating blocks")
Reported-by: Jan Kara <jack@suse.cz>
Closes: https://lore.kernel.org/linux-ext4/nhxfuu53wyacsrq7xqgxvgzcggyscu2tbabginahcygvmc45hy@t4fvmyeky33e/
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Link: https://patch.msgid.link/20250707140814.542883-11-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 57661f2 commit 5137d6c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6212 | 6212 | | |
6213 | 6213 | | |
6214 | 6214 | | |
6215 | | - | |
| 6215 | + | |
6216 | 6216 | | |
6217 | 6217 | | |
6218 | 6218 | | |
| |||
6221 | 6221 | | |
6222 | 6222 | | |
6223 | 6223 | | |
6224 | | - | |
| 6224 | + | |
6225 | 6225 | | |
6226 | 6226 | | |
6227 | 6227 | | |
| |||
0 commit comments