[JFFS2] add cond_resched() when garbage collecting deletion dirent
authorArtem Bityutskiy <dedekind@infradead.org>
Tue, 19 Dec 2006 13:45:23 +0000 (15:45 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 19 Dec 2006 14:20:16 +0000 (14:20 +0000)
commitaba54da3d05e910199ea8255992c244c9abadd91
treefc634ff11819f2f94ef23478d6471757dc21c6d6
parent0bf3a9d82adc62fb05e3f108ddd46eb088960f26
[JFFS2] add cond_resched() when garbage collecting deletion dirent

We observe soft lockups when doing heavy test which creates
directory with a lot of direntries and deletes them. This
cycle is the reason fo this. Make it nicer and add cond_resched()
inside of it.

Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/gc.c