@@ -243,7 +243,7 @@ static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr,
243
243
244
244
BUG_ON (!lc );
245
245
BUG_ON (!lc -> nr_elements );
246
- hlist_for_each_entry (e , lc_hash_slot (lc , enr ), colision ) {
246
+ hlist_for_each_entry (e , lc_hash_slot (lc , enr ), collision ) {
247
247
/* "about to be changed" elements, pending transaction commit,
248
248
* are hashed by their "new number". "Normal" elements have
249
249
* lc_number == lc_new_number. */
@@ -303,7 +303,7 @@ void lc_del(struct lru_cache *lc, struct lc_element *e)
303
303
BUG_ON (e -> refcnt );
304
304
305
305
e -> lc_number = e -> lc_new_number = LC_FREE ;
306
- hlist_del_init (& e -> colision );
306
+ hlist_del_init (& e -> collision );
307
307
list_move (& e -> list , & lc -> free );
308
308
RETURN ();
309
309
}
@@ -324,9 +324,9 @@ static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned n
324
324
PARANOIA_LC_ELEMENT (lc , e );
325
325
326
326
e -> lc_new_number = new_number ;
327
- if (!hlist_unhashed (& e -> colision ))
328
- __hlist_del (& e -> colision );
329
- hlist_add_head (& e -> colision , lc_hash_slot (lc , new_number ));
327
+ if (!hlist_unhashed (& e -> collision ))
328
+ __hlist_del (& e -> collision );
329
+ hlist_add_head (& e -> collision , lc_hash_slot (lc , new_number ));
330
330
list_move (& e -> list , & lc -> to_be_changed );
331
331
332
332
return e ;
0 commit comments