]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: optimize error handling in redirty_blocks
authorJack Qiu <jack.qiu@huawei.com>
Tue, 31 May 2022 01:16:56 +0000 (09:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:04 +0000 (15:11 +0200)
commit520ff47fc61fa9d56d3d2518f799d993b2ce756e
tree28dd522eeffdf66f514301a4397fcbbde75b14d2
parent2e580f42d1753e2751e1c7b47d59aee3a74b270b
f2fs: optimize error handling in redirty_blocks

[ Upstream commit a4a0e16dbf77582c4f58ab472229dd071b5c4260 ]

Current error handling is at risk of page leaks. However, we dot't seek
any failure scenarios, just use f2fs_bug_on.

Signed-off-by: Jack Qiu <jack.qiu@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: a4d7f2b3238f ("f2fs: fix to wait page writeback before setting gcing flag")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c