search for: __page_shrink_discards

Displaying 2 results from an estimated 2 matches for "__page_shrink_discards".

2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
....c 2006-09-01 12:50:25.000000000 +0200 +++ linux-2.6-patched/mm/page_alloc.c 2006-09-01 12:50:25.000000000 +0200 @@ -786,6 +786,42 @@ void drain_local_pages(void) } #endif /* CONFIG_PM */ +#if defined(CONFIG_PAGE_DISCARD_LIST) +DEFINE_PER_CPU(struct list_head, page_discard_list); + +static void __page_shrink_discards(void *info) +{ + static DEFINE_SPINLOCK(splice_lock); + struct list_head *discard_list = info; + struct list_head *cpu_list = &__get_cpu_var(page_discard_list); + + if (list_empty(cpu_list)) + return; + spin_lock(&splice_lock); + list_splice_init(cpu_list, discard_list); + spin_unlock(&amp...
2007 Apr 18
1
[patch 8/9] Guest page hinting: discarded page list.
....c 2006-09-01 12:50:25.000000000 +0200 +++ linux-2.6-patched/mm/page_alloc.c 2006-09-01 12:50:25.000000000 +0200 @@ -786,6 +786,42 @@ void drain_local_pages(void) } #endif /* CONFIG_PM */ +#if defined(CONFIG_PAGE_DISCARD_LIST) +DEFINE_PER_CPU(struct list_head, page_discard_list); + +static void __page_shrink_discards(void *info) +{ + static DEFINE_SPINLOCK(splice_lock); + struct list_head *discard_list = info; + struct list_head *cpu_list = &__get_cpu_var(page_discard_list); + + if (list_empty(cpu_list)) + return; + spin_lock(&splice_lock); + list_splice_init(cpu_list, discard_list); + spin_unlock(&amp...