mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-22 08:51:30 +03:00
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:
parent
bca4ca7949
commit
335f46b219
@ -203,8 +203,6 @@ extern char *vn_dumpdir;
|
|||||||
#define CPU_SEQID ((uintptr_t)pthread_self() & (max_ncpus - 1))
|
#define CPU_SEQID ((uintptr_t)pthread_self() & (max_ncpus - 1))
|
||||||
#define CPU_SEQID_UNSTABLE CPU_SEQID
|
#define CPU_SEQID_UNSTABLE CPU_SEQID
|
||||||
|
|
||||||
#define ptob(x) ((x) * PAGESIZE)
|
|
||||||
|
|
||||||
#define NN_DIVISOR_1000 (1U << 0)
|
#define NN_DIVISOR_1000 (1U << 0)
|
||||||
#define NN_NUMBUF_SZ (6)
|
#define NN_NUMBUF_SZ (6)
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,8 @@
|
|||||||
extern size_t spl_pagesize(void);
|
extern size_t spl_pagesize(void);
|
||||||
#define PAGESIZE (spl_pagesize())
|
#define PAGESIZE (spl_pagesize())
|
||||||
|
|
||||||
|
#define ptob(x) ((x) * PAGESIZE)
|
||||||
|
|
||||||
#ifndef HAVE_EXECVPE
|
#ifndef HAVE_EXECVPE
|
||||||
extern int execvpe(const char *name, char * const argv[], char * const envp[]);
|
extern int execvpe(const char *name, char * const argv[], char * const envp[]);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -65,4 +65,6 @@
|
|||||||
extern size_t spl_pagesize(void);
|
extern size_t spl_pagesize(void);
|
||||||
#define PAGESIZE (spl_pagesize())
|
#define PAGESIZE (spl_pagesize())
|
||||||
|
|
||||||
|
#define ptob(x) ((x) * PAGESIZE)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user