patch-1.3.72 linux/fs/nfs/inode.c
Next file: linux/fs/vfat/namei.c
Previous file: linux/fs/nfs/file.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Mar 8 15:52:02 1996
- Orig file:
v1.3.71/linux/fs/nfs/inode.c
- Orig date:
Tue Feb 20 14:37:27 1996
diff -u --recursive --new-file v1.3.71/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -49,12 +49,13 @@
/*
* 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.
+ * just mark the cache times invalid, and zero out i_mode
+ * (the latter makes "nfs_refresh_inode" do the right thing)
*/
static void nfs_read_inode(struct inode * inode)
{
- NFS_READTIME(inode) = jiffies - 1000000;
- NFS_OLDMTIME(inode) = 0;
+ inode->i_mode = 0;
+ NFS_CACHEINV(inode);
}
static void nfs_put_inode(struct inode * inode)
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