[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Balloon driver should hijack the ->lru list field rather than



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID c6fee5f7c83834fab2409975fc383643a3c3787d
# Parent  f3588e8b49a4624b7df7389fd4969611b7e7fe9d
Balloon driver should hijack the ->lru list field rather than
adding another list field to every page structure.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   9913:decf309fb47b3f4246540a5e1327663651d266fe
xen-unstable date:        Tue May  2 17:23:21 2006 +0100

diff -r f3588e8b49a4 -r c6fee5f7c838 
linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c
--- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c        Tue May 02 
15:25:22 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c        Tue May 02 
17:24:29 2006 +0100
@@ -94,8 +94,8 @@ static DECLARE_WORK(balloon_worker, ball
 static DECLARE_WORK(balloon_worker, balloon_process, NULL);
 static struct timer_list balloon_timer;
 
-#define PAGE_TO_LIST(p) (&(p)->ballooned)
-#define LIST_TO_PAGE(l) list_entry((l), struct page, ballooned)
+#define PAGE_TO_LIST(p) (&(p)->lru)
+#define LIST_TO_PAGE(l) list_entry((l), struct page, lru)
 #define UNLIST_PAGE(p)                         \
        do {                                    \
                list_del(PAGE_TO_LIST(p));      \
diff -r f3588e8b49a4 -r c6fee5f7c838 linux-2.6-xen-sparse/include/linux/mm.h
--- a/linux-2.6-xen-sparse/include/linux/mm.h   Tue May 02 15:25:22 2006 +0100
+++ b/linux-2.6-xen-sparse/include/linux/mm.h   Tue May 02 17:24:29 2006 +0100
@@ -248,9 +248,6 @@ struct page {
 #if NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS
            spinlock_t ptl;
 #endif
-#ifdef CONFIG_XEN
-           struct list_head ballooned;
-#endif
        };
        pgoff_t index;                  /* Our offset within mapping. */
        struct list_head lru;           /* Pageout list, eg. active_list

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.