ia64/xen-unstable

changeset 9920:decf309fb47b

Balloon driver should hijack the ->lru list field rather than
adding another list field to every page structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue May 02 17:23:21 2006 +0100 (2006-05-02)
parents 72d1cf383c67
children 3f69d30f697d 55f73916d319
files linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c linux-2.6-xen-sparse/include/linux/mm.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Tue May 02 17:17:15 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Tue May 02 17:23:21 2006 +0100
     1.3 @@ -94,8 +94,8 @@ static void balloon_process(void *unused
     1.4  static DECLARE_WORK(balloon_worker, balloon_process, NULL);
     1.5  static struct timer_list balloon_timer;
     1.6  
     1.7 -#define PAGE_TO_LIST(p) (&(p)->ballooned)
     1.8 -#define LIST_TO_PAGE(l) list_entry((l), struct page, ballooned)
     1.9 +#define PAGE_TO_LIST(p) (&(p)->lru)
    1.10 +#define LIST_TO_PAGE(l) list_entry((l), struct page, lru)
    1.11  #define UNLIST_PAGE(p)				\
    1.12  	do {					\
    1.13  		list_del(PAGE_TO_LIST(p));	\
     2.1 --- a/linux-2.6-xen-sparse/include/linux/mm.h	Tue May 02 17:17:15 2006 +0100
     2.2 +++ b/linux-2.6-xen-sparse/include/linux/mm.h	Tue May 02 17:23:21 2006 +0100
     2.3 @@ -248,9 +248,6 @@ struct page {
     2.4  #if NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS
     2.5  	    spinlock_t ptl;
     2.6  #endif
     2.7 -#ifdef CONFIG_XEN
     2.8 -	    struct list_head ballooned;
     2.9 -#endif
    2.10  	};
    2.11  	pgoff_t index;			/* Our offset within mapping. */
    2.12  	struct list_head lru;		/* Pageout list, eg. active_list