diff options
Diffstat (limited to 'include/sys/dmu.h')
-rw-r--r-- | include/sys/dmu.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/sys/dmu.h b/include/sys/dmu.h index 7040b6740..20733f502 100644 --- a/include/sys/dmu.h +++ b/include/sys/dmu.h @@ -41,9 +41,6 @@ #include <sys/cred.h> #include <sys/time.h> #include <sys/uio.h> -#ifdef _KERNEL -#include <sys/blkdev.h> -#endif #ifdef __cplusplus extern "C" { @@ -514,6 +511,7 @@ void dmu_write(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, void dmu_prealloc(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, dmu_tx_t *tx); #ifdef _KERNEL +#include <linux/blkdev_compat.h> int dmu_read_req(objset_t *os, uint64_t object, struct request *req); int dmu_write_req(objset_t *os, uint64_t object, struct request *req, dmu_tx_t *tx); |