patch-1.3.87 linux/include/linux/wrapper.h

Next file: linux/include/net/ax25call.h
Previous file: linux/include/linux/ultrasound.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.86/linux/include/linux/wrapper.h linux/include/linux/wrapper.h
@@ -33,8 +33,8 @@
 #define vma_get_end(v) v->vm_end
 #define vma_get_page_prot(v) v->vm_page_prot
 
-#define mem_map_reserve(p) mem_map[p].reserved = 1
-#define mem_map_unreserve(p) mem_map[p].reserved = 0
+#define mem_map_reserve(p) set_bit(PG_reserved, &mem_map[p].flags)
+#define mem_map_unreserve(p) clear_bit(PG_reserved, &mem_map[p].flags)
 #define mem_map_inc_count(p) mem_map[p].count++
 #define mem_map_dec_count(p) mem_map[p].count--
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this