mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
jbd2: simplify error path on allocation failure in do_get_write_access()
We were acquiring bh_state_lock when allocation of buffer failed in do_get_write_access() only to be able to jump to a label that releases the lock and does all other checks that don't make sense for this error path. Just jump into the right label instead. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
ee57aba159
commit
d012aa5965
@ -947,8 +947,7 @@ repeat:
|
|||||||
__func__);
|
__func__);
|
||||||
JBUFFER_TRACE(jh, "oom!");
|
JBUFFER_TRACE(jh, "oom!");
|
||||||
error = -ENOMEM;
|
error = -ENOMEM;
|
||||||
jbd_lock_bh_state(bh);
|
goto out;
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
goto repeat;
|
goto repeat;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user