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