NFSv4: ACCESS validation doesn't require a full attribute refresh

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>
This commit is contained in:
Trond Myklebust 2012-01-30 15:43:56 -05:00
Родитель 8b7e3f49dd
Коммит a4980e7840
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 nfs_server *server = NFS_SERVER(inode);
struct nfs4_accessargs args = { struct nfs4_accessargs args = {
.fh = NFS_FH(inode), .fh = NFS_FH(inode),
.bitmask = server->attr_bitmask, .bitmask = server->cache_consistency_bitmask,
}; };
struct nfs4_accessres res = { struct nfs4_accessres res = {
.server = server, .server = server,