Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.48 /fs/file_table.c

Filename:/fs/file_table.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.3.11  2.3.10  2.3.9  2.3.5  2.2.14  2.2.14pre18 
(Following) 2.3.99-pre4  2.3.99-pre7  2.3.99-pre8  2.5.48  2.5.50  2.5.62bk6 

Location
[  2.3.48
  [  fs
     o  file_table.c

Patch

diff -u --recursive --new-file v2.3.47/linux/fs/file_table.c linux/fs/file_table.c
--- v2.3.47/linux/fs/file_table.c   Wed Jul 14 13:30:36 1999
+++ linux/fs/file_table.c   Sat Feb 26 20:33:06 2000
@@ -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


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.