f2fs: do retry operations with cond_resched
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Dec 2014 18:39:49 +0000 (10:39 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 8 Dec 2014 18:35:05 +0000 (10:35 -0800)
commit9be32d72becca41d7d9b010d7d9be1d39489414f
tree7ac34f8b38e3db9411a175b4e5f0ee810c57d7ef
parent769ec6e5b7d4a8115447736871be8bffaaba3a7d
f2fs: do retry operations with cond_resched

This patch revists retrial paths in f2fs.
The basic idea is to use cond_resched instead of retrying from the very early
stage.

Suggested-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/node.c
fs/f2fs/segment.c