aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/build.c
diff options
context:
space:
mode:
authorArtem B. Bityuckiy <dedekind@infradead.org>2005-07-12 17:37:12 +0100
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-07-13 00:02:33 +0200
commitb62205986a73a40e4fc174d2ef668e3895e925bc (patch)
treee5754d64dcdf508dd4f3602135c963990d261411 /fs/jffs2/build.c
parente4fef6618992bea48b7856ebbd236796b744964f (diff)
downloadkernel_samsung_tuna-b62205986a73a40e4fc174d2ef668e3895e925bc.zip
kernel_samsung_tuna-b62205986a73a40e4fc174d2ef668e3895e925bc.tar.gz
kernel_samsung_tuna-b62205986a73a40e4fc174d2ef668e3895e925bc.tar.bz2
[JFFS2] Init locks early during mount
In case of a mount error locks might be uninitialized but accessed by the resulting call to jffs2_kill_sb(). Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/build.c')
-rw-r--r--fs/jffs2/build.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/jffs2/build.c b/fs/jffs2/build.c
index 3dd5394..97dc397 100644
--- a/fs/jffs2/build.c
+++ b/fs/jffs2/build.c
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
- * $Id: build.c,v 1.70 2005/02/28 08:21:05 dedekind Exp $
+ * $Id: build.c,v 1.71 2005/07/12 16:37:08 dedekind Exp $
*
*/
@@ -336,13 +336,6 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c)
c->blocks[i].bad_count = 0;
}
- init_MUTEX(&c->alloc_sem);
- init_MUTEX(&c->erase_free_sem);
- init_waitqueue_head(&c->erase_wait);
- init_waitqueue_head(&c->inocache_wq);
- spin_lock_init(&c->erase_completion_lock);
- spin_lock_init(&c->inocache_lock);
-
INIT_LIST_HEAD(&c->clean_list);
INIT_LIST_HEAD(&c->very_dirty_list);
INIT_LIST_HEAD(&c->dirty_list);