patch-2.3.48 linux/fs/file_table.c

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

diff -u --recursive --new-file v2.3.47/linux/fs/file_table.c linux/fs/file_table.c
@@ -99,7 +99,7 @@
 /*
  * Clear and initialize a (private) struct file for the given dentry,
  * and call the open function (if any).  The caller must verify that
- * inode->i_op and inode->i_op->default_file_ops are not NULL.
+ * inode->i_fop is not NULL.
  */
 int init_private_file(struct file *filp, struct dentry *dentry, int mode)
 {
@@ -109,7 +109,7 @@
 	filp->f_dentry = dentry;
 	filp->f_uid    = current->fsuid;
 	filp->f_gid    = current->fsgid;
-	filp->f_op     = dentry->d_inode->i_op->default_file_ops;
+	filp->f_op     = dentry->d_inode->i_fop;
 	if (filp->f_op->open)
 		return filp->f_op->open(dentry->d_inode, filp);
 	else

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