mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
coda: correctly invalidate cached access rights
Change the epoch value to forces a refresh instead of clearing the cached rights mask and block all further accesses to the object. Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
38c2e4370d
commit
56ee354794
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ void coda_cache_enter(struct inode *inode, int mask)
|
|||
void coda_cache_clear_inode(struct inode *inode)
|
||||
{
|
||||
struct coda_inode_info *cii = ITOC(inode);
|
||||
cii->c_cached_perm = 0;
|
||||
cii->c_cached_epoch = atomic_read(&permission_epoch) - 1;
|
||||
}
|
||||
|
||||
/* remove all acl caches */
|
||||
|
|
Loading…
Reference in a new issue