Lines Matching refs:lru

71 	struct list_head lru;  member
82 struct list_head lru; member
130 struct list_lru *lru; in nfs4_xattr_entry_lru_add() local
132 lru = (entry->flags & NFS4_XATTR_ENTRY_EXTVAL) ? in nfs4_xattr_entry_lru_add()
135 return list_lru_add(lru, &entry->lru); in nfs4_xattr_entry_lru_add()
141 struct list_lru *lru; in nfs4_xattr_entry_lru_del() local
143 lru = (entry->flags & NFS4_XATTR_ENTRY_EXTVAL) ? in nfs4_xattr_entry_lru_del()
146 return list_lru_del(lru, &entry->lru); in nfs4_xattr_entry_lru_del()
239 INIT_LIST_HEAD(&entry->lru); in nfs4_xattr_alloc_entry()
261 if (WARN_ON(!list_empty(&entry->lru))) in nfs4_xattr_free_entry_cb()
352 list_lru_del(&nfs4_xattr_cache_lru, &oldcache->lru); in nfs4_xattr_cache_unlink()
477 list_lru_add(&nfs4_xattr_cache_lru, &cache->lru); in nfs4_xattr_get_cache()
824 struct list_lru_one *lru, spinlock_t *lru_lock, void *arg) in cache_lru_isolate() argument
829 struct nfs4_xattr_cache, lru); in cache_lru_isolate()
849 list_lru_isolate(lru, &cache->lru); in cache_lru_isolate()
889 struct list_lru_one *lru, spinlock_t *lru_lock, void *arg) in entry_lru_isolate() argument
895 struct nfs4_xattr_entry, lru); in entry_lru_isolate()
918 list_lru_isolate(lru, &entry->lru); in entry_lru_isolate()
929 list_lru_isolate(lru, &entry->lru); in entry_lru_isolate()
944 struct list_lru *lru; in nfs4_xattr_entry_scan() local
946 lru = (shrink == &nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_scan()
949 freed = list_lru_shrink_walk(lru, sc, entry_lru_isolate, &dispose); in nfs4_xattr_entry_scan()
972 struct list_lru *lru; in nfs4_xattr_entry_count() local
974 lru = (shrink == &nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_count()
977 count = list_lru_shrink_count(lru, sc); in nfs4_xattr_entry_count()
990 INIT_LIST_HEAD(&cache->lru); in nfs4_xattr_cache_init_once()
995 struct list_lru *lru, const char *name) in nfs4_xattr_shrinker_init() argument
1003 ret = list_lru_init_memcg(lru, shrinker); in nfs4_xattr_shrinker_init()
1011 struct list_lru *lru) in nfs4_xattr_shrinker_destroy() argument
1014 list_lru_destroy(lru); in nfs4_xattr_shrinker_destroy()