diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index df0886e08a772..14783f7dcbe98 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -2410,11 +2410,10 @@ again: (frame - 1)->bh); if (err) goto journal_error; - if (restart) { - err = ext4_handle_dirty_dx_node(handle, dir, - frame->bh); + err = ext4_handle_dirty_dx_node(handle, dir, + frame->bh); + if (err) goto journal_error; - } } else { struct dx_root *dxroot; memcpy((char *) entries2, (char *) entries,