]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: add timeout in f2fs_enable_checkpoint()
authorChao Yu <chao@kernel.org>
Thu, 7 Aug 2025 04:00:25 +0000 (12:00 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 20 Aug 2025 17:44:09 +0000 (17:44 +0000)
commit4bc347779698b5e67e1514bab105c2c083e55502
treebc847c9cd76a6ff43550e149ffb34da0b6f4d925
parent8fc6056dcf79937c46c97fa4996cda65956437a9
f2fs: add timeout in f2fs_enable_checkpoint()

During f2fs_enable_checkpoint() in remount(), if we flush a large
amount of dirty pages into slow device, it may take long time which
will block write IO, let's add a timeout machanism during dirty
pages flush to avoid long time block in f2fs_enable_checkpoint().

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