mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
ext4: fix potential htree corruption when growing large_dir directories
Commitb5776e7524
("ext4: fix potential htree index checksum corruption) removed a required restart when multiple levels of index nodes need to be split. Fix this to avoid directory htree corruptions when using the large_dir feature. Cc: stable@kernel.org # v5.11 Cc: Благодаренко Артём <artem.blagodarenko@gmail.com> Fixes:b5776e7524
("ext4: fix potential htree index checksum corruption) Reported-by: Denis <denis@voxelsoft.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
73dc707161
commit
877ba3f729
1 changed files with 1 additions and 1 deletions
|
@ -2517,7 +2517,7 @@ again:
|
|||
goto journal_error;
|
||||
err = ext4_handle_dirty_dx_node(handle, dir,
|
||||
frame->bh);
|
||||
if (err)
|
||||
if (restart || err)
|
||||
goto journal_error;
|
||||
} else {
|
||||
struct dx_root *dxroot;
|
||||
|
|
Loading…
Add table
Reference in a new issue