patch-2.3.16 linux/fs/fat/inode.c

Next file: linux/fs/fat/misc.c
Previous file: linux/fs/ext2/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/fs/fat/inode.c linux/fs/fat/inode.c
@@ -622,7 +622,7 @@
 	sb->s_magic = MSDOS_SUPER_MAGIC;
 	/* set up enough so that it can read an inode */
 	init_waitqueue_head(&MSDOS_SB(sb)->fat_wait);
-	MSDOS_SB(sb)->fat_lock = 0;
+	init_MUTEX(&MSDOS_SB(sb)->fat_lock);
 	MSDOS_SB(sb)->prev_free = 0;
 
 	cp = opts.codepage ? opts.codepage : 437;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)