Skip to content

Commit 6fe2bc9

Browse files
author
Jaegeuk Kim
committed
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>
1 parent 201ef5e commit 6fe2bc9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/f2fs/extent_cache.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink)
569569

570570
if (node_cnt + tree_cnt >= nr_shrink)
571571
goto unlock_out;
572+
cond_resched();
572573
}
573574
up_write(&sbi->extent_tree_lock);
574575

0 commit comments

Comments
 (0)