jffs2: Require jffs2_garbage_collect_trigger() to be called with lock held
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 19 May 2010 16:00:10 +0000 (17:00 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 19 May 2010 16:10:22 +0000 (17:10 +0100)
commitacb64a43e4503fbea9faf123f2403da7af8831eb
tree862d5ad6530b7c8671bda96a1bd1d07179f0b7c9
parentd6ce171069635f05737935adc813b4d48d71a583
jffs2: Require jffs2_garbage_collect_trigger() to be called with lock held

We're about to call this from a bunch of places which already hold
c->erase_completion_lock, so add an assertion and change its existing
callers to do the same.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/background.c
fs/jffs2/nodemgmt.c
fs/jffs2/super.c