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)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 12 Jun 2023 20:04:09 +0000 (13:04 -0700)
commit20872584b8c0b006c007da9588a272c9e28d2e18
treef8445856fa9f4d6fa628aa440a409d5baef54bd9
parent38a4a330c8bf6498bde3be155485c9b44a517fb0
f2fs: fix to drop all dirty meta/node pages during umount()

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>
fs/f2fs/super.c