Explorar o código

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>
Jaegeuk Kim %!s(int64=10) %!d(string=hai) anos
pai
achega
6fe2bc9561
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      fs/f2fs/extent_cache.c

+ 1 - 0
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);