[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>

authored by Artem Bityutskiy and committed by David Woodhouse aba54da3 0bf3a9d8

+2
+2
fs/jffs2/gc.c
··· 838 838 839 839 for (raw = f->inocache->nodes; raw != (void *)f->inocache; raw = raw->next_in_ino) { 840 840 841 + cond_resched(); 842 + 841 843 /* We only care about obsolete ones */ 842 844 if (!(ref_obsolete(raw))) 843 845 continue;