Skip to content

Commit

Permalink
FreeBSD: Move uio_prefaultpages def to uio.h
Browse files Browse the repository at this point in the history
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 openzfs#11176
  • Loading branch information
Ryan Moeller authored and tonyhutter committed Nov 12, 2021
1 parent 4995996 commit b6c9ad6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions include/os/freebsd/spl/sys/uio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion include/os/freebsd/zfs/sys/zfs_context_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b6c9ad6

Please sign in to comment.