]> git.proxmox.com Git - mirror_spl.git/blob - include/sys/param.h
Added btop() and moved ptob() to include/sys/param.h.
[mirror_spl.git] / include / sys / param.h
1 #ifndef _SPL_PARAM_H
2 #define _SPL_PARAM_H
3
4 /* Pages to bytes and back */
5 #define ptob(pages) (pages * PAGE_SIZE)
6 #define btop(bytes) (bytes / PAGE_SIZE)
7
8 #endif /* SPL_PARAM_H */