]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv3: Client-side nfsacl caching fix
authorAndreas Gruenbacher <agruen@suse.de>
Thu, 25 May 2006 05:41:03 +0000 (01:41 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 9 Jun 2006 13:34:11 +0000 (09:34 -0400)
commit46a3c0b5c2f5ea063dbfc49aed6380c267776211
tree41575affcd777e41d1ade756867697cd27bfc2ec
parent7c462f316e79ff7d33ad0a77e71362cfcf8f29f7
NFSv3: Client-side nfsacl caching fix

Fix two errors in the client-side acl cache: First, when nfs3_proc_getacl
requests only the default acl of a file and the access acl is not cached
already, a NULL access acl entry is cached instead of ERR_PTR(-EAGAIN)
("not cached").

Second, update the cached acls in nfs3_proc_setacls: nfs_refresh_inode does
not always invalidate the cached acls, and when it does not, the cached acls
get out of sync.

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs3acl.c