]> git.hungrycats.org Git - linux/commit
f2fs: fix to drop all dirty meta/node pages during umount()
authorChao Yu <chao@kernel.org>
Sun, 28 May 2023 07:47:12 +0000 (15:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:33 +0000 (09:48 +0200)
commit0e2577074b459bba7f4016f4d725ede37d48bb22
tree8a47e4ae46e723bfb82eca4ce6a62f3e7e183182
parent1c5fb9c7956c5162310973b822eb110206579753
f2fs: fix to drop all dirty meta/node pages during umount()

[ Upstream commit 20872584b8c0b006c007da9588a272c9e28d2e18 ]

For cp error case, there will be dirty meta/node pages remained after
f2fs_write_checkpoint() in f2fs_put_super(), drop them explicitly, and
do sanity check on reference count of dirty pages and inflight IOs.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: eb61c2cca2eb ("f2fs: fix to account cp stats correctly")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/super.c