]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NFSv4: ACCESS validation doesn't require a full attribute refresh
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 30 Jan 2012 20:43:56 +0000 (15:43 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2012 00:28:24 +0000 (19:28 -0500)
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>
fs/nfs/nfs4proc.c

index 828a76590af92e73a0f12bdd3386b05ac2a00160..1bb0be36a7260a3e3384d47828a7dd1eb073aec4 100644 (file)
@@ -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,