diff options
author | Kemeng Shi | 2023-08-27 01:47:02 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-11-28 17:07:21 +0000 |
commit | ec4ba3d62f0fdde57cfaaeb7f1df85609b9a86ef (patch) | |
tree | 6a29acfb8d2d144e272f6749792119f817c57e7d | |
parent | 32b9fb9a67ec70bbe3afe931b0ea44203150a49a (diff) |
ext4: correct return value of ext4_convert_meta_bg
commit 48f1551592c54f7d8e2befc72a99ff4e47f7dca0 upstream.
Avoid to ignore error in "err".
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link: https://lore.kernel.org/r/20230826174712.4059355-4-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | fs/ext4/resize.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 35d4b75eea33..927920edd70e 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -1985,9 +1985,7 @@ static int ext4_convert_meta_bg(struct super_block *sb, struct inode *inode) errout: ret = ext4_journal_stop(handle); - if (!err) - err = ret; - return ret; + return err ? err : ret; invalid_resize_inode: ext4_error(sb, "corrupted/inconsistent resize inode"); |