diff options
| author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-07-03 08:44:37 -0500 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-24 17:45:47 +0200 |
| commit | 46167aec68f48cbbeff23cae9173bc4d19a7bcda (patch) | |
| tree | dd5d261f10c12271b1af1d8dab0472d09677171d /include/linux/list.h | |
| parent | ff3fd6afd788760c846a2f4449487debb6c4b0ac (diff) | |
| download | lwn-46167aec68f48cbbeff23cae9173bc4d19a7bcda.tar.gz lwn-46167aec68f48cbbeff23cae9173bc4d19a7bcda.zip | |
mm: page_alloc reduce lock sections further
Split out the pages which are to be freed into a separate list and
call free_pages_bulk() outside of the percpu page allocator locks.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/list.h')
| -rw-r--r-- | include/linux/list.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index 969f6e92d089..d62a35b4f9ba 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -345,6 +345,9 @@ static inline void list_splice_tail_init(struct list_head *list, #define list_first_entry(ptr, type, member) \ list_entry((ptr)->next, type, member) +#define list_last_entry(ptr, type, member) \ + list_entry((ptr)->prev, type, member) + /** * list_for_each - iterate over a list * @pos: the &struct list_head to use as a loop cursor. |
