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