[<prev] [next>] [day] [month] [year] [list]
Message-ID: <cc935d9e-0e59-fba9-ecdd-a01b435eb5bd@virtuozzo.com>
Date: Mon, 29 Oct 2018 18:25:40 +0300
From: Vasily Averin <vvs@...tuozzo.com>
To: linux-ext4@...r.kernel.org, Theodore Ts'o <tytso@....edu>
Cc: Andreas Dilger <adilger.kernel@...ger.ca>,
linux-kernel@...r.kernel.org
Subject: [PATCH 7/7] ext4 resize: lost resize_inode cleanup before retry in
ext4_resize_fs()
Fixes 1c6bd7173d66 ("ext4: convert file system to meta_bg if needed ...")
#? cc: stable <stable@...r.kernel.org> # 3.7+
Signed-off-by: Vasily Averin <vvs@...nvz.org>
---
fs/ext4/resize.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c
index 16b7cfe485d7..3006ede18773 100644
--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -2059,6 +2059,10 @@ int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)
n_blocks_count_retry = 0;
free_flex_gd(flex_gd);
flex_gd = NULL;
+ if (resize_inode) {
+ iput(resize_inode);
+ resize_inode = NULL;
+ }
goto retry;
}
--
2.17.1
Powered by blists - more mailing lists