patch-2.3.48 linux/fs/coda/file.c

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

diff -u --recursive --new-file v2.3.47/linux/fs/coda/file.c linux/fs/coda/file.c
@@ -33,21 +33,9 @@
 int coda_fsync(struct file *, struct dentry *dentry);
 
 struct inode_operations coda_file_inode_operations = {
-	&coda_file_operations,	/* default file operations */
-	NULL,			/* create */
-	NULL,		        /* lookup */
-	NULL,			/* link */
-	NULL,		        /* unlink */
-	NULL,			/* symlink */
-	NULL,			/* mkdir */
-	NULL,			/* rmdir */
-	NULL,			/* mknod */
-	NULL,		        /* rename */
-	NULL,			/* readlink */
-	NULL,			/* follow_link */
-	NULL,			/* truncate */
-        coda_permission,        /* permission */
-        coda_revalidate_inode   /* revalidate */
+        permission:	coda_permission,
+        revalidate:	coda_revalidate_inode,
+	setattr:	coda_notify_change,
 };
 
 struct file_operations coda_file_operations = {
@@ -133,7 +121,7 @@
         cont_file->f_flags = coda_file->f_flags;
         atomic_set(&cont_file->f_count, atomic_read(&coda_file->f_count));
         cont_file->f_owner  = coda_file->f_owner;
-	cont_file->f_op = cont_inode->i_op->default_file_ops;
+	cont_file->f_op = cont_inode->i_fop;
 	cont_file->f_dentry = cont_dentry;
         cont_file->f_dentry->d_inode = cont_inode;
         return ;

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