patch-2.3.44 linux/fs/inode.c
Next file: linux/fs/openpromfs/inode.c
Previous file: linux/drivers/video/igafb.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Feb 10 19:12:16 2000
- Orig file:
v2.3.43/linux/fs/inode.c
- Orig date:
Thu Feb 10 17:11:17 2000
diff -u --recursive --new-file v2.3.43/linux/fs/inode.c linux/fs/inode.c
@@ -464,6 +464,7 @@
*/
static void clean_inode(struct inode *inode)
{
+ static struct address_space_operations empty_aops = {};
memset(&inode->u, 0, sizeof(inode->u));
inode->i_sock = 0;
inode->i_op = NULL;
@@ -474,8 +475,9 @@
memset(&inode->i_dquot, 0, sizeof(inode->i_dquot));
inode->i_pipe = NULL;
inode->i_bdev = NULL;
+ inode->i_data.a_ops = &empty_aops;
+ inode->i_data.host = (void*)inode;
inode->i_mapping = &inode->i_data;
- inode->i_mapping->host = (void*)inode;
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)