Skip to content

Commit

Permalink
coda: correctly invalidate cached access rights
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Harkes authored and Linus Torvalds committed Jul 19, 2007
1 parent 38c2e43 commit 56ee354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/coda/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 56ee354

Please sign in to comment.