summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/extent_cache.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-01-20 07:31:48 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-02-22 16:07:23 -0800
commit6fe2bc95616650104020e821ea84c086cce1e290 (patch)
treebbe33e23f6aa322c07ee1f967cdaf91d32a14911 /fs/f2fs/extent_cache.c
parent201ef5e080c9b58d619bfd9e11a845bd330712ea (diff)
downloadop-kernel-dev-6fe2bc95616650104020e821ea84c086cce1e290.zip
op-kernel-dev-6fe2bc95616650104020e821ea84c086cce1e290.tar.gz
f2fs: give scheduling point in shrinking path
It needs to give a chance to be rescheduled while shrinking slab entries. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/extent_cache.c')
-rw-r--r--fs/f2fs/extent_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c
index 53f49f7..365cf95 100644
--- a/fs/f2fs/extent_cache.c
+++ b/fs/f2fs/extent_cache.c
@@ -569,6 +569,7 @@ unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink)
if (node_cnt + tree_cnt >= nr_shrink)
goto unlock_out;
+ cond_resched();
}
up_write(&sbi->extent_tree_lock);
OpenPOWER on IntegriCloud