提交 56ee3547 编写于 作者: J Jan Harkes 提交者: Linus Torvalds

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: NJan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 38c2e437
...@@ -43,7 +43,7 @@ void coda_cache_enter(struct inode *inode, int mask) ...@@ -43,7 +43,7 @@ void coda_cache_enter(struct inode *inode, int mask)
void coda_cache_clear_inode(struct inode *inode) void coda_cache_clear_inode(struct inode *inode)
{ {
struct coda_inode_info *cii = ITOC(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 */ /* remove all acl caches */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册