]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfs/dir.c
NFS: Use i_writecount to control whether to get an fscache cookie in nfs_open()
[karo-tx-linux.git] / fs / nfs / dir.c
index 854a8f05a61007bf14b2dd75e7f080fbb248cce4..4c5edcc8b6e91a4cf88c9299b86802f2784e0c4f 100644 (file)
@@ -1381,7 +1381,7 @@ static struct nfs_open_context *create_nfs_open_context(struct dentry *dentry, i
 
 static int do_open(struct inode *inode, struct file *filp)
 {
-       nfs_fscache_set_inode_cookie(inode, filp);
+       nfs_fscache_open_file(inode, filp);
        return 0;
 }