diff options
| author | Jan Harkes <jaharkes@cs.cmu.edu> | 2003-09-16 03:33:13 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-16 03:33:13 -0700 |
| commit | 64353a2bae9026326af3f34b87918c2e94120b8e (patch) | |
| tree | 7a2f89a00dd27b4e4d95833f19947080927daacb /include | |
| parent | 876538836685806bd256822167ffcac74754b2d7 (diff) | |
[PATCH] Coda updates [2/5]
Use a global 'epoch' counter to invalidate cached permissions instead of
traversing a racy linked list of all known Coda inodes.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/coda_cache.h | 2 | ||||
| -rw-r--r-- | include/linux/coda_fs_i.h | 1 | ||||
| -rw-r--r-- | include/linux/coda_psdev.h | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/coda_cache.h b/include/linux/coda_cache.h index c5087185d378..c910b5eb1ceb 100644 --- a/include/linux/coda_cache.h +++ b/include/linux/coda_cache.h @@ -13,7 +13,7 @@ /* credential cache */ void coda_cache_enter(struct inode *inode, int mask); void coda_cache_clear_inode(struct inode *); -void coda_cache_clear_all(struct super_block *sb, struct coda_cred *cred); +void coda_cache_clear_all(struct super_block *sb); int coda_cache_check(struct inode *inode, int mask); /* for downcalls and attributes and lookups */ diff --git a/include/linux/coda_fs_i.h b/include/linux/coda_fs_i.h index e320452eba6a..28511c79af45 100644 --- a/include/linux/coda_fs_i.h +++ b/include/linux/coda_fs_i.h @@ -21,6 +21,7 @@ struct coda_inode_info { u_short c_flags; /* flags (see below) */ struct list_head c_cilist; /* list of all coda inodes */ unsigned int c_mapcount; /* nr of times this inode is mapped */ + unsigned int c_cached_epoch; struct coda_cred c_cached_cred; /* credentials of cached perms */ unsigned int c_cached_perm; /* cached access permissions */ struct inode vfs_inode; diff --git a/include/linux/coda_psdev.h b/include/linux/coda_psdev.h index e8a5d2f18247..74125fc4e0a8 100644 --- a/include/linux/coda_psdev.h +++ b/include/linux/coda_psdev.h @@ -11,7 +11,6 @@ struct kstatfs; struct coda_sb_info { struct venus_comm *sbi_vcomm; - struct list_head sbi_cihead; }; /* communication pending/processing queues */ |
