patch-2.4.27 linux-2.4.27/include/asm-sparc64/pgalloc.h
Next file: linux-2.4.27/include/asm-sparc64/pgtable.h
Previous file: linux-2.4.27/include/asm-sparc64/page.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
2004-08-07 16:26:06.202410385 -0700
- Orig file:
linux-2.4.26/include/asm-sparc64/pgalloc.h
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.26/include/asm-sparc64/pgalloc.h linux-2.4.27/include/asm-sparc64/pgalloc.h
@@ -147,11 +147,11 @@
struct page *page = virt_to_page(pgd);
if (!page->pprev_hash) {
- (unsigned long *)page->next_hash = pgd_quicklist;
+ page->next_hash = (struct page *)pgd_quicklist;
pgd_quicklist = (unsigned long *)page;
}
- (unsigned long)page->pprev_hash |=
- (((unsigned long)pgd & (PAGE_SIZE / 2)) ? 2 : 1);
+ page->pprev_hash = (struct page **)(((unsigned long)page->pprev_hash) |
+ (((unsigned long)pgd & (PAGE_SIZE / 2)) ? 2 : 1));
pgd_cache_size++;
}
@@ -169,7 +169,7 @@
off = PAGE_SIZE / 2;
mask &= ~2;
}
- (unsigned long)ret->pprev_hash = mask;
+ ret->pprev_hash = (struct page **)mask;
if (!mask)
pgd_quicklist = (unsigned long *)ret->next_hash;
ret = (struct page *)(__page_address(ret) + off);
@@ -180,8 +180,8 @@
if (page) {
ret = (struct page *)page_address(page);
clear_page(ret);
- (unsigned long)page->pprev_hash = 2;
- (unsigned long *)page->next_hash = pgd_quicklist;
+ page->pprev_hash = (struct page **) 2UL;
+ page->next_hash = (struct page *) pgd_quicklist;
pgd_quicklist = (unsigned long *)page;
pgd_cache_size++;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)