patch-1.3.69 linux/fs/super.c
Next file: linux/fs/sysv/file.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Feb 26 12:39:10 1996
- Orig file:
v1.3.68/linux/fs/super.c
- Orig date:
Fri Feb 16 11:34:10 1996
diff -u --recursive --new-file v1.3.68/linux/fs/super.c linux/fs/super.c
@@ -458,7 +458,7 @@
* filesystems which don't use real block-devices. -- jrs
*/
-static char unnamed_dev_in_use[256/8] = { 0, };
+static unsigned int unnamed_dev_in_use[256/32] = { 0, };
kdev_t get_unnamed_dev(void)
{
@@ -636,7 +636,10 @@
return -EBUSY;
}
vfsmnt = add_vfsmnt(dev, dev_name, dir_name);
- vfsmnt->mnt_sb = sb;
+ if (vfsmnt) {
+ vfsmnt->mnt_sb = sb;
+ vfsmnt->mnt_flags = flags;
+ }
sb->s_covered = dir_i;
dir_i->i_mount = sb->s_mounted;
return 0; /* we don't iput(dir_i) - see umount */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this