diff options
| author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-07-03 09:44:37 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-24 11:45:47 -0400 |
| commit | 46167aec68f48cbbeff23cae9173bc4d19a7bcda (patch) | |
| tree | dd5d261f10c12271b1af1d8dab0472d09677171d /include | |
| parent | ff3fd6afd788760c846a2f4449487debb6c4b0ac (diff) | |
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')
| -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, | |||
| 345 | #define list_first_entry(ptr, type, member) \ | 345 | #define list_first_entry(ptr, type, member) \ |
| 346 | list_entry((ptr)->next, type, member) | 346 | list_entry((ptr)->next, type, member) |
| 347 | 347 | ||
| 348 | #define list_last_entry(ptr, type, member) \ | ||
| 349 | list_entry((ptr)->prev, type, member) | ||
| 350 | |||
| 348 | /** | 351 | /** |
| 349 | * list_for_each - iterate over a list | 352 | * list_for_each - iterate over a list |
| 350 | * @pos: the &struct list_head to use as a loop cursor. | 353 | * @pos: the &struct list_head to use as a loop cursor. |
