diff options
author | David Howells <dhowells@redhat.com> | 2012-12-05 16:31:49 (GMT) |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-12-20 22:19:42 (GMT) |
commit | a4ff146881c2764d7c3e4ef710e7c27d521ddd51 (patch) | |
tree | 8ccae41f3006989727ea0e915daee791c99c5906 /fs | |
parent | 969695215f9a865cbf64c4ce3742ac9fc57fffed (diff) | |
download | linux-fsl-qoriq-a4ff146881c2764d7c3e4ef710e7c27d521ddd51.tar.xz |
NFS4: Open files for fscaching
nfs4_file_open() should open files for fscaching.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/fscache.c | 1 | ||||
-rw-r--r-- | fs/nfs/nfs4file.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/fscache.c b/fs/nfs/fscache.c index c817787..24d1d1c 100644 --- a/fs/nfs/fscache.c +++ b/fs/nfs/fscache.c @@ -307,6 +307,7 @@ void nfs_fscache_set_inode_cookie(struct inode *inode, struct file *filp) 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 diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c index e769930..08ddccc 100644 --- a/fs/nfs/nfs4file.c +++ b/fs/nfs/nfs4file.c @@ -5,6 +5,7 @@ */ #include <linux/nfs_fs.h> #include "internal.h" +#include "fscache.h" #include "pnfs.h" #define NFSDBG_FACILITY NFSDBG_FILE @@ -74,6 +75,7 @@ nfs4_file_open(struct inode *inode, struct file *filp) nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); nfs_file_set_open_context(filp, ctx); + nfs_fscache_set_inode_cookie(inode, filp); err = 0; out_put_ctx: |