Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fe2bc95 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: give scheduling point in shrinking path



It needs to give a chance to be rescheduled while shrinking slab entries.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 201ef5e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);