patch-1.3.73 linux/fs/nfs/inode.c
Next file: linux/fs/super.c
Previous file: linux/fs/nfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Tue Mar 12 16:24:10 1996
- Orig file:
v1.3.72/linux/fs/nfs/inode.c
- Orig date:
Sun Mar 10 09:49:56 1996
diff -u --recursive --new-file v1.3.72/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -50,19 +50,20 @@
* The "read_inode" function doesn't actually do anything:
* the real data is filled in later in nfs_fhget. Here we
* just mark the cache times invalid, and zero out i_mode
- * (the latter makes "nfs_refresh_inode" do the right thing)
+ * (the latter makes "nfs_refresh_inode" do the right thing
+ * wrt pipe inodes)
*/
static void nfs_read_inode(struct inode * inode)
{
inode->i_mode = 0;
+ inode->i_op = NULL;
NFS_CACHEINV(inode);
}
static void nfs_put_inode(struct inode * inode)
{
-#if 0
- clear_inode(inode);
-#endif
+ if (inode->i_pipe)
+ clear_inode(inode);
}
void nfs_put_super(struct super_block *sb)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this