projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201ef5e
)
f2fs: give scheduling point in shrinking path
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 19 Jan 2016 23:31:48 +0000
(07:31 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000
(16:07 -0800)
It needs to give a chance to be rescheduled while shrinking slab entries.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/extent_cache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/extent_cache.c
b/fs/f2fs/extent_cache.c
index 53f49f71332316e348d986de5463c7a26ae4bd2b..365cf950891b6003cc83d1bfa31244dad8efdf99 100644
(file)
--- 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);