patch-2.3.51 linux/fs/umsdos/inode.c

Next file: linux/fs/umsdos/namei.c
Previous file: linux/fs/ufs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/fs/umsdos/inode.c linux/fs/umsdos/inode.c
@@ -75,7 +75,6 @@
 		pseudo_root = NULL;
 	}
 	msdos_put_super (sb);
-	MOD_DEC_USE_COUNT;
 }
 
 
@@ -334,7 +333,6 @@
 	struct super_block *res;
 	struct dentry *new_root;
 
-	MOD_INC_USE_COUNT;
 	MSDOS_SB(sb)->options.isvfat = 0;
 	/*
 	 * Call msdos-fs to mount the disk.
@@ -381,8 +379,6 @@
 
 out_fail:
 	printk(KERN_INFO "UMSDOS: msdos_read_super failed, mount aborted.\n");
-	sb->s_dev = 0;
-	MOD_DEC_USE_COUNT;
 	return NULL;
 }
 
@@ -437,13 +433,7 @@
 }
 
 
-static struct file_system_type umsdos_fs_type =
-{
-	"umsdos",
-	FS_REQUIRES_DEV,
-	UMSDOS_read_super,
-	NULL
-};
+static DECLARE_FSTYPE_DEV(umsdos_fs_type, "umsdos", UMSDOS_read_super);
 
 int __init init_umsdos_fs (void)
 {

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