Skip to content

Commit

Permalink
NFSv4: ACCESS validation doesn't require a full attribute refresh
Browse files Browse the repository at this point in the history
We only really need to check the change attribute, so let's just use the
server->cache_consistency_bitmask.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 1, 2012
1 parent 8b7e3f4 commit a4980e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2512,7 +2512,7 @@ static int _nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entry
struct nfs_server *server = NFS_SERVER(inode);
struct nfs4_accessargs args = {
.fh = NFS_FH(inode),
.bitmask = server->attr_bitmask,
.bitmask = server->cache_consistency_bitmask,
};
struct nfs4_accessres res = {
.server = server,
Expand Down

0 comments on commit a4980e7

Please sign in to comment.