Lines Matching refs:ei
77 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_update_lru() local
79 if (ei->cache_lru.next != &cache->cache_list) in exfat_cache_update_lru()
80 list_move(&cache->cache_list, &ei->cache_lru); in exfat_cache_update_lru()
87 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_lookup() local
92 spin_lock(&ei->cache_lru_lock); in exfat_cache_lookup()
93 list_for_each_entry(p, &ei->cache_lru, cache_list) { in exfat_cache_lookup()
108 cid->id = ei->cache_valid_id; in exfat_cache_lookup()
115 spin_unlock(&ei->cache_lru_lock); in exfat_cache_lookup()
123 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_merge() local
126 list_for_each_entry(p, &ei->cache_lru, cache_list) { in exfat_cache_merge()
140 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_add() local
146 spin_lock(&ei->cache_lru_lock); in exfat_cache_add()
148 new->id != ei->cache_valid_id) in exfat_cache_add()
153 if (ei->nr_caches < EXFAT_MAX_CACHE) { in exfat_cache_add()
154 ei->nr_caches++; in exfat_cache_add()
155 spin_unlock(&ei->cache_lru_lock); in exfat_cache_add()
159 spin_lock(&ei->cache_lru_lock); in exfat_cache_add()
160 ei->nr_caches--; in exfat_cache_add()
161 spin_unlock(&ei->cache_lru_lock); in exfat_cache_add()
165 spin_lock(&ei->cache_lru_lock); in exfat_cache_add()
168 ei->nr_caches--; in exfat_cache_add()
174 struct list_head *p = ei->cache_lru.prev; in exfat_cache_add()
186 spin_unlock(&ei->cache_lru_lock); in exfat_cache_add()
195 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_cache_inval_inode() local
198 while (!list_empty(&ei->cache_lru)) { in __exfat_cache_inval_inode()
199 cache = list_entry(ei->cache_lru.next, in __exfat_cache_inval_inode()
202 ei->nr_caches--; in __exfat_cache_inval_inode()
206 ei->cache_valid_id++; in __exfat_cache_inval_inode()
207 if (ei->cache_valid_id == EXFAT_CACHE_VALID) in __exfat_cache_inval_inode()
208 ei->cache_valid_id++; in __exfat_cache_inval_inode()
213 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_inval_inode() local
215 spin_lock(&ei->cache_lru_lock); in exfat_cache_inval_inode()
217 spin_unlock(&ei->cache_lru_lock); in exfat_cache_inval_inode()
243 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_get_cluster() local
247 if (ei->start_clu == EXFAT_FREE_CLUSTER) { in exfat_get_cluster()
250 ei->start_clu); in exfat_get_cluster()
255 *dclus = ei->start_clu; in exfat_get_cluster()