Lines Matching refs:cii
32 struct coda_inode_info *cii = ITOC(inode); in coda_cache_enter() local
34 spin_lock(&cii->c_lock); in coda_cache_enter()
35 cii->c_cached_epoch = atomic_read(&permission_epoch); in coda_cache_enter()
36 if (!uid_eq(cii->c_uid, current_fsuid())) { in coda_cache_enter()
37 cii->c_uid = current_fsuid(); in coda_cache_enter()
38 cii->c_cached_perm = mask; in coda_cache_enter()
40 cii->c_cached_perm |= mask; in coda_cache_enter()
41 spin_unlock(&cii->c_lock); in coda_cache_enter()
47 struct coda_inode_info *cii = ITOC(inode); in coda_cache_clear_inode() local
48 spin_lock(&cii->c_lock); in coda_cache_clear_inode()
49 cii->c_cached_epoch = atomic_read(&permission_epoch) - 1; in coda_cache_clear_inode()
50 spin_unlock(&cii->c_lock); in coda_cache_clear_inode()
63 struct coda_inode_info *cii = ITOC(inode); in coda_cache_check() local
66 spin_lock(&cii->c_lock); in coda_cache_check()
67 hit = (mask & cii->c_cached_perm) == mask && in coda_cache_check()
68 uid_eq(cii->c_uid, current_fsuid()) && in coda_cache_check()
69 cii->c_cached_epoch == atomic_read(&permission_epoch); in coda_cache_check()
70 spin_unlock(&cii->c_lock); in coda_cache_check()