summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/list_lru.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/list_lru.h b/include/linux/list_lru.h
index 2fe13e1a809a..4d02ad3badab 100644
--- a/include/linux/list_lru.h
+++ b/include/linux/list_lru.h
@@ -137,21 +137,4 @@ list_lru_walk(struct list_lru *lru, list_lru_walk_cb isolate,
137 } 137 }
138 return isolated; 138 return isolated;
139} 139}
140
141typedef void (*list_lru_dispose_cb)(struct list_head *dispose_list);
142/**
143 * list_lru_dispose_all: forceably flush all elements in an @lru
144 * @lru: the lru pointer
145 * @dispose: callback function to be called for each lru list.
146 *
147 * This function will forceably isolate all elements into the dispose list, and
148 * call the @dispose callback to flush the list. Please note that the callback
149 * should expect items in any state, clean or dirty, and be able to flush all of
150 * them.
151 *
152 * Return value: how many objects were freed. It should be equal to all objects
153 * in the list_lru.
154 */
155unsigned long
156list_lru_dispose_all(struct list_lru *lru, list_lru_dispose_cb dispose);
157#endif /* _LRU_LIST_H */ 140#endif /* _LRU_LIST_H */