f2fs: check return value of freeze_super()
authorChao Yu <chao@kernel.org>
Tue, 6 Jun 2023 06:19:01 +0000 (14:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:22:00 +0000 (16:22 +0200)
commit0623f13959fddd4dff9e0c9e0f24b1bfae8a3ec4
tree11598a3d24435da9ac239c9522d018d49313ecb1
parentdcb526d768359095a438336f3aca5e8d98b7d2e6
f2fs: check return value of freeze_super()

[ Upstream commit 8bec7dd1b3f7d7769d433d67bde404de948a2d95 ]

freeze_super() can fail, it needs to check its return value and do
error handling in f2fs_resize_fs().

Fixes: 04f0b2eaa3b3 ("f2fs: ioctl for removing a range from F2FS")
Fixes: b4b10061ef98 ("f2fs: refactor resize_fs to avoid meta updates in progress")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/gc.c