libspl: move ptob() from zfs_context.h

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #17861
This commit is contained in:
Rob Norris
2025-10-18 22:24:06 +11:00
committed by Brian Behlendorf
parent bca4ca7949
commit 335f46b219
3 changed files with 4 additions and 2 deletions
@@ -58,6 +58,8 @@
extern size_t spl_pagesize(void);
#define PAGESIZE (spl_pagesize())
#define ptob(x) ((x) * PAGESIZE)
#ifndef HAVE_EXECVPE
extern int execvpe(const char *name, char * const argv[], char * const envp[]);
#endif
+2
View File
@@ -65,4 +65,6 @@
extern size_t spl_pagesize(void);
#define PAGESIZE (spl_pagesize())
#define ptob(x) ((x) * PAGESIZE)
#endif