patch-2.1.118 linux/fs/super.c

Next file: linux/fs/sysv/dir.c
Previous file: linux/fs/smbfs/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.117/linux/fs/super.c linux/fs/super.c
@@ -539,8 +539,8 @@
 	if (nr_super_blocks >= max_super_blocks)
 		return NULL;
 	s = kmalloc(sizeof(struct super_block),  GFP_USER);
-	nr_super_blocks++;
 	if (s) {
+		nr_super_blocks++;
 		memset(s, 0, sizeof(struct super_block));
 		INIT_LIST_HEAD(&s->s_dirty);
 		list_add (&s->s_list, super_blocks.prev);
@@ -1129,7 +1129,7 @@
 	goto dput_and_out;
 }
 
-__initfunc(void mount_root(void))
+void __init mount_root(void)
 {
 	struct file_system_type * fs_type;
 	struct super_block * sb;
@@ -1228,7 +1228,7 @@
 
 extern int initmem_freed;
 
-__initfunc(static int do_change_root(kdev_t new_root_dev,const char *put_old))
+static int __init do_change_root(kdev_t new_root_dev,const char *put_old)
 {
 	kdev_t old_root_dev;
 	struct vfsmount *vfsmnt;

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