]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: check skipped write in f2fs_enable_checkpoint()
authorChao Yu <chao@kernel.org>
Mon, 26 Jan 2026 06:32:03 +0000 (06:32 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 27 Jan 2026 02:45:44 +0000 (02:45 +0000)
commitab59919c8a041bf0fc6c8fe65dd10729e19de88c
tree3140ed5196c8f25235a1f8564569774391826c7a
parent993663874be557a80d4cdc9700b760bb6d27c098
f2fs: check skipped write in f2fs_enable_checkpoint()

This patch introduces sbi->nr_pages[F2FS_SKIPPED_WRITE] to record any
skipped write during data flush in f2fs_enable_checkpoint().

So in the loop of data flush, if there is any skipped write in previous
flush, let's retry sync_inode_sb(), otherwise, all dirty data written
before f2fs_enable_checkpoint() should have been persisted, then break
the retry loop.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/debug.c
fs/f2fs/f2fs.h
fs/f2fs/super.c