patch-2.0.30 linux/fs/super.c

Next file: linux/include/asm-alpha/semaphore.h
Previous file: linux/fs/proc/procfs_syms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.29/linux/fs/super.c linux/fs/super.c
@@ -553,6 +553,7 @@
 		if (!set_bit(i,unnamed_dev_in_use))
 			return MKDEV(UNNAMED_MAJOR, i);
 	}
+	printk("VFS: Sorry, out of unnamed devices\n");
 	return 0;
 }
 
@@ -910,6 +911,8 @@
 	}
 	retval = do_mount(dev,dev_name,dir_name,t,flags,(void *) page);
 	free_page(page);
+	if (retval && !fstype->requires_dev) 
+		put_unnamed_dev(dev);
 	if (retval && fops && fops->release)
 		fops->release(inode, NULL);
 	iput(inode);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov