# 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
|