summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorYohan Joung <jyh429@gmail.com>2023-03-27 16:58:00 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2023-04-13 06:00:37 +0300
commitd09bd853005c720d5578f80b34e144ff3bc3eae8 (patch)
treef52a0a62f4dc29150691d0fe6d33f64f35f0db88 /fs/f2fs
parente1bb7d3d9cbf3ddcb8367d87b2f70757ec55f951 (diff)
downloadlinux-d09bd853005c720d5578f80b34e144ff3bc3eae8.tar.xz
f2fs: add radix_tree_preload_end in error case
To prevent excessive increase in preemption count add radix_tree_preload_end in retry Signed-off-by: Yohan Joung <yohan.joung@sk.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/checkpoint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 19e2cfe3b5be..448ecf5000b8 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -515,6 +515,7 @@ retry:
if (!e) {
if (!new) {
spin_unlock(&im->ino_lock);
+ radix_tree_preload_end();
goto retry;
}
e = new;