WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [linux-ppc-2.6] [LINUX][XEN] User init_page_count(p) not set_pa

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [LINUX][XEN] User init_page_count(p) not set_page_count(p, 1)
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 08 Oct 2006 18:03:43 +0000
Delivery-date: Sun, 08 Oct 2006 11:32:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 1a66de3462c1290b6612a5c2b329b303d7b51cd3
# Parent  985be3a2501b2d29c0848746080a8cff7931165a
[LINUX][XEN] User init_page_count(p) not set_page_count(p,1)

set_page_count() as been removed from use ourside mm/

See:
  
http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7835e98b2e3c66dba79cb0ff8ebb90a2fe030c29

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 drivers/xen/netback/netback.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r 985be3a2501b -r 1a66de3462c1 drivers/xen/netback/netback.c
--- a/drivers/xen/netback/netback.c     Sun Oct 08 12:48:24 2006 -0400
+++ b/drivers/xen/netback/netback.c     Sun Oct 08 13:10:56 2006 -0400
@@ -1318,7 +1318,7 @@ static void netif_page_release(struct pa
        u16 pending_idx = page - virt_to_page(mmap_vstart);
 
        /* Ready for next use. */
-       set_page_count(page, 1);
+       init_page_count(page);
 
        netif_idx_release(pending_idx);
 }
@@ -1326,7 +1326,7 @@ static void netif_rx_page_release(struct
 static void netif_rx_page_release(struct page *page)
 {
        /* Ready for next use. */
-       set_page_count(page, 1);
+       init_page_count(page);
 }
 
 irqreturn_t netif_be_int(int irq, void *dev_id, struct pt_regs *regs)
@@ -1455,7 +1455,7 @@ static int __init netback_init(void)
 
        for (i = 0; i < MAX_PENDING_REQS; i++) {
                page = virt_to_page(MMAP_VADDR(i));
-               set_page_count(page, 1);
+               init_page_count(page);
                SetPageForeign(page, netif_page_release);
        }
 
@@ -1465,7 +1465,7 @@ static int __init netback_init(void)
 
        for (i = 0; i < NET_RX_RING_SIZE; i++) {
                page = virt_to_page(rx_mmap_area + (i * PAGE_SIZE));
-               set_page_count(page, 1);
+               init_page_count(page);
                SetPageForeign(page, netif_rx_page_release);
        }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [LINUX][XEN] User init_page_count(p) not set_page_count(p, 1), Xen patchbot-linux-ppc-2 . 6 <=