From: Jan Harkes Date: Thu, 19 Jul 2007 08:48:42 +0000 (-0700) Subject: coda: correctly invalidate cached access rights X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=56ee3547940f895a2cf20f2ac462fbeaee55fa2a;p=linux-beck.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/coda/cache.c b/fs/coda/cache.c index fcb88fa8d2f2..11538a2b5423 100644 --- a/fs/coda/cache.c +++ b/fs/coda/cache.c @@ -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 */