mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 12:10:26 +03:00
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
|
#ifndef _SPL_PARAM_H
|
||||||
#define _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 */
|
#endif /* SPL_PARAM_H */
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
* memory state and not as direct evidence that page reclaimation
|
* memory state and not as direct evidence that page reclaimation
|
||||||
* is or is not currently in progress.
|
* is or is not currently in progress.
|
||||||
*/
|
*/
|
||||||
#define ptob(pages) (pages * PAGE_SIZE)
|
|
||||||
#define membar_producer() smp_wmb()
|
#define membar_producer() smp_wmb()
|
||||||
|
|
||||||
#define physmem num_physpages
|
#define physmem num_physpages
|
||||||
|
Loading…
Reference in New Issue
Block a user