svn commit: r210583 - projects/ofed/head/sys/ofed/include/linux

Jeff Roberson jeff at FreeBSD.org
Thu Jul 29 02:09:26 UTC 2010


Author: jeff
Date: Thu Jul 29 02:09:25 2010
New Revision: 210583
URL: http://svn.freebsd.org/changeset/base/210583

Log:
   - PAGE_MASK in linux is the inverse of the BSD page mask.
   - Define a page zeroing function which is only bzero.
  
  Sponsored by:	Isilon Systems, iX Systems, and Panasas.

Modified:
  projects/ofed/head/sys/ofed/include/linux/page.h

Modified: projects/ofed/head/sys/ofed/include/linux/page.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/page.h	Thu Jul 29 02:08:48 2010	(r210582)
+++ projects/ofed/head/sys/ofed/include/linux/page.h	Thu Jul 29 02:09:25 2010	(r210583)
@@ -39,4 +39,9 @@
 
 #define	virt_to_page(x)	PHYS_TO_VM_PAGE(vtophys((x)))
 
+#define	clear_page(page)	memset((page), 0, PAGE_SIZE)
+
+#undef	PAGE_MASK
+#define	PAGE_MASK	(~(PAGE_SIZE-1))
+
 #endif	/* _LINUX_PAGE_H_ */


More information about the svn-src-projects mailing list