patch-2.3.48 linux/fs/inode.c

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

diff -u --recursive --new-file v2.3.47/linux/fs/inode.c linux/fs/inode.c
@@ -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;

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