patch-2.3.48 linux/fs/hpfs/super.c

Next file: linux/fs/inode.c
Previous file: linux/fs/hpfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/hpfs/super.c linux/fs/hpfs/super.c
@@ -152,19 +152,13 @@
 
 /* Super operations */
 
-static const struct super_operations hpfs_sops =
+static struct super_operations hpfs_sops =
 {
-        hpfs_read_inode,		/* read_inode */
-        NULL,				/* write_inode */
-	NULL,				/* put_inode */
-	hpfs_delete_inode,		/* delete inode */
-        hpfs_notify_change,		/* notify_change */
-        hpfs_put_super,			/* put_super */
-        NULL,				/* write_super */
-        hpfs_statfs,			/* statfs */
-        hpfs_remount_fs,		/* remount_fs */
-	NULL,				/* clear inode */
-	NULL,				/* umount_begin */
+        read_inode:	hpfs_read_inode,
+	delete_inode:	hpfs_delete_inode,
+	put_super:	hpfs_put_super,
+	statfs:		hpfs_statfs,
+	remount_fs:	hpfs_remount_fs,
 };
 
 /*
@@ -437,7 +431,7 @@
 	s->s_magic = HPFS_SUPER_MAGIC;
 	s->s_blocksize = 512;
 	s->s_blocksize_bits = 9;
-	s->s_op = (struct super_operations *) &hpfs_sops;
+	s->s_op = &hpfs_sops;
 
 	s->s_hpfs_root = superblock->root;
 	s->s_hpfs_fs_size = superblock->n_sectors;

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