mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
ext4: remove dead code in updating backup sb
ext4_update_backup_sb checks for err having some value after unlocking buffer. But err has not been updated till that point in any code which will lead execution of the code in question. Signed-off-by: Tanmay Bhushan <007047221b@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20221230141858.3828-1-007047221b@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
240930fb7e
commit
08abd0466e
1 changed files with 0 additions and 3 deletions
|
@ -155,9 +155,6 @@ static int ext4_update_backup_sb(struct super_block *sb,
|
||||||
set_buffer_uptodate(bh);
|
set_buffer_uptodate(bh);
|
||||||
unlock_buffer(bh);
|
unlock_buffer(bh);
|
||||||
|
|
||||||
if (err)
|
|
||||||
goto out_bh;
|
|
||||||
|
|
||||||
if (handle) {
|
if (handle) {
|
||||||
err = ext4_handle_dirty_metadata(handle, NULL, bh);
|
err = ext4_handle_dirty_metadata(handle, NULL, bh);
|
||||||
if (err)
|
if (err)
|
||||||
|
|
Loading…
Reference in a new issue