From: Jaegeuk Kim Date: Tue, 19 Jan 2016 23:31:48 +0000 (+0800) Subject: f2fs: give scheduling point in shrinking path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fe2bc95616650104020e821ea84c086cce1e290;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c index 53f49f713323..365cf950891b 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);