patch-2.3.6 linux/include/linux/pagemap.h
Next file: linux/include/linux/parport.h
Previous file: linux/include/linux/nfs_fs_i.h
Back to the patch index
Back to the overall index
-  Lines: 8
-  Date:
Tue Jun  8 23:03:47 1999
-  Orig file: 
v2.3.5/linux/include/linux/pagemap.h
-  Orig date: 
Mon May 31 22:28:06 1999
diff -u --recursive --new-file v2.3.5/linux/include/linux/pagemap.h linux/include/linux/pagemap.h
@@ -28,6 +28,7 @@
 #define PAGE_CACHE_SHIFT	PAGE_SHIFT
 #define PAGE_CACHE_SIZE		PAGE_SIZE
 #define PAGE_CACHE_MASK		PAGE_MASK
+#define PAGE_CACHE_ALIGN(addr)	(((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK)
 
 #define page_cache_alloc()	__get_free_page(GFP_USER)
 #define page_cache_free(x)	free_page(x)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)