Added btop() and moved ptob() to include/sys/param.h.

This commit is contained in:
Ricardo M. Correia 2009-02-22 03:05:40 +00:00 committed by Brian Behlendorf
parent 4327ac3ff9
commit 7819a92a9b
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,8 @@
#ifndef _SPL_PARAM_H
#define _SPL_PARAM_H
/* Pages to bytes and back */
#define ptob(pages) (pages * PAGE_SIZE)
#define btop(bytes) (bytes / PAGE_SIZE)
#endif /* SPL_PARAM_H */

View File

@ -40,7 +40,6 @@
* memory state and not as direct evidence that page reclaimation
* is or is not currently in progress.
*/
#define ptob(pages) (pages * PAGE_SIZE)
#define membar_producer() smp_wmb()
#define physmem num_physpages