patch-2.3.29 linux/arch/arm/mm/small_page.c
Next file: linux/arch/i386/boot/Makefile
Previous file: linux/arch/arm/mm/mm-armv.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Nov 23 22:23:11 1999
- Orig file:
v2.3.28/linux/arch/arm/mm/small_page.c
- Orig date:
Thu Nov 11 20:11:31 1999
diff -u --recursive --new-file v2.3.28/linux/arch/arm/mm/small_page.c linux/arch/arm/mm/small_page.c
@@ -66,9 +66,9 @@
#endif
};
-#define USED_MAP(pg) ((pg)->offset)
-#define TEST_AND_CLEAR_USED(pg,off) (test_and_clear_bit(off, &(pg)->offset))
-#define SET_USED(pg,off) (set_bit(off, &(pg)->offset))
+#define USED_MAP(pg) ((pg)->index)
+#define TEST_AND_CLEAR_USED(pg,off) (test_and_clear_bit(off, &USED_MAP(pg)))
+#define SET_USED(pg,off) (set_bit(off, &USED_MAP(pg)))
static void add_page_to_queue(struct page *page, struct page **p)
{
@@ -116,7 +116,7 @@
remove_page_from_queue(page);
restore_flags(flags);
- return page_address(page) + (offset << order->shift);
+ return __page_address(page) + (offset << order->shift);
need_new_page:
page = alloc_page(priority);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)