diff options
author | Jan Harkes <jaharkes@cs.cmu.edu> | 2007-07-19 04:48:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:48 -0400 |
commit | 56ee3547940f895a2cf20f2ac462fbeaee55fa2a (patch) | |
tree | b8fe62fb424c9f6b10a41f67e91955735c9034ef /fs | |
parent | 38c2e4370da495813ca93d7cad31ed5090e8c310 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/coda/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
43 | void coda_cache_clear_inode(struct inode *inode) | 43 | void coda_cache_clear_inode(struct inode *inode) |
44 | { | 44 | { |
45 | struct coda_inode_info *cii = ITOC(inode); | 45 | struct coda_inode_info *cii = ITOC(inode); |
46 | cii->c_cached_perm = 0; | 46 | cii->c_cached_epoch = atomic_read(&permission_epoch) - 1; |
47 | } | 47 | } |
48 | 48 | ||
49 | /* remove all acl caches */ | 49 | /* remove all acl caches */ |