Added btop() and moved ptob() to include/sys/param.h.
This commit is contained in:
parent
4327ac3ff9
commit
7819a92a9b
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue