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

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

Advertisement

Kernel v2.3.48 /fs/inode.c

Filename:/fs/inode.c
Lines Added:4
Lines Deleted:1
Also changed in: (Previous) 2.3.47  2.3.45  2.3.44  2.3.43  2.3.41  2.3.39 
(Following) 2.3.51  2.3.99-pre4  2.3.99-pre6  2.3.99-pre7  2.3.99-pre9  2.5.48 

Location
[  2.3.48
  [  fs
     o  inode.c

Patch

diff -u --recursive --new-file v2.3.47/linux/fs/inode.c linux/fs/inode.c
--- v2.3.47/linux/fs/inode.c   Sun Feb 20 21:12:39 2000
+++ linux/fs/inode.c   Sat Feb 26 20:33:06 2000
@@ -471,9 +471,12 @@
 static void clean_inode(struct inode *inode)
 {
    static struct address_space_operations empty_aops = {};
+   static struct inode_operations empty_iops = {};
+   static struct file_operations empty_fops = {};
    memset(&inode->u, 0, sizeof(inode->u));
    inode->i_sock = 0;
-   inode->i_op = NULL;
+   inode->i_op = &empty_iops;
+   inode->i_fop = &empty_fops;
    inode->i_nlink = 1;
    atomic_set(&inode->i_writecount, 0);
    inode->i_size = 0;


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