FreeBSD: Move uio_prefaultpages def to uio.h
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matt Macy <mmacy@FreeBSD.org> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11176
This commit is contained in:
parent
6f59f6402d
commit
cd4f9572d0
|
@ -62,6 +62,7 @@ void uioskip(uio_t *uiop, size_t n);
|
|||
#define uio_iovlen(uio, idx) (uio)->uio_iov[(idx)].iov_len
|
||||
#define uio_iovbase(uio, idx) (uio)->uio_iov[(idx)].iov_base
|
||||
#define uio_fault_disable(uio, set)
|
||||
#define uio_prefaultpages(size, uio) (0)
|
||||
|
||||
static inline void
|
||||
uio_iov_at_index(uio_t *uio, uint_t idx, void **base, uint64_t *len)
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#include <linux/types.h>
|
||||
|
||||
#define cond_resched() kern_yield(PRI_USER)
|
||||
#define uio_prefaultpages(size, uio) (0)
|
||||
|
||||
#define taskq_create_sysdc(a, b, d, e, p, dc, f) \
|
||||
(taskq_create(a, b, maxclsyspri, d, e, f))
|
||||
|
|
Loading…
Reference in New Issue