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

Commit 4fb48871 authored by Al Viro's avatar Al Viro
Browse files

restore cond_resched() in shrink_dcache_parent()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1088a640
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1473,10 +1473,15 @@ void shrink_dcache_parent(struct dentry *parent)
		data.found = 0;

		d_walk(parent, &data, select_collect);
		if (!data.found)
			break;

		if (!list_empty(&data.dispose)) {
			shrink_dentry_list(&data.dispose);
			continue;
		}

		cond_resched();
		if (!data.found)
			break;
	}
}
EXPORT_SYMBOL(shrink_dcache_parent);