Commit a4ff1468 authored by David Howells's avatar David Howells

NFS4: Open files for fscaching

nfs4_file_open() should open files for fscaching.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 96969521
...@@ -307,6 +307,7 @@ void nfs_fscache_set_inode_cookie(struct inode *inode, struct file *filp) ...@@ -307,6 +307,7 @@ void nfs_fscache_set_inode_cookie(struct inode *inode, struct file *filp)
nfs_fscache_inode_unlock(inode); nfs_fscache_inode_unlock(inode);
} }
} }
EXPORT_SYMBOL_GPL(nfs_fscache_set_inode_cookie);
/* /*
* Replace a per-inode cookie due to revalidation detecting a file having * Replace a per-inode cookie due to revalidation detecting a file having
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <linux/nfs_fs.h> #include <linux/nfs_fs.h>
#include "internal.h" #include "internal.h"
#include "fscache.h"
#include "pnfs.h" #include "pnfs.h"
#define NFSDBG_FACILITY NFSDBG_FILE #define NFSDBG_FACILITY NFSDBG_FILE
...@@ -74,6 +75,7 @@ nfs4_file_open(struct inode *inode, struct file *filp) ...@@ -74,6 +75,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
nfs_file_set_open_context(filp, ctx); nfs_file_set_open_context(filp, ctx);
nfs_fscache_set_inode_cookie(inode, filp);
err = 0; err = 0;
out_put_ctx: out_put_ctx:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment