mirror_zfs/include/sys/param.h
Ricardo M. Correia eb7c7f44e8 Changed ptob()/btop() mult/div into bit shifts.
Added necessary include for PAGE_SHIFT.
2009-02-25 15:50:58 -08:00

11 lines
210 B
C

#ifndef _SPL_PARAM_H
#define _SPL_PARAM_H
#include <asm/page.h>
/* Pages to bytes and back */
#define ptob(pages) (pages << PAGE_SHIFT)
#define btop(bytes) (bytes >> PAGE_SHIFT)
#endif /* SPL_PARAM_H */