Skip to content

Commit

Permalink
NFS4: Open files for fscaching
Browse files Browse the repository at this point in the history
nfs4_file_open() should open files for fscaching.

Signed-off-by: David Howells <[email protected]>
  • Loading branch information
dhowells committed Dec 20, 2012
1 parent 9696952 commit a4ff146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfs/fscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions fs/nfs/nfs4file.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
#include <linux/nfs_fs.h>
#include "internal.h"
#include "fscache.h"
#include "pnfs.h"

#define NFSDBG_FACILITY NFSDBG_FILE
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a4ff146

Please sign in to comment.