summaryrefslogtreecommitdiffstats
path: root/include/sys/dmu.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-12-17 09:14:38 -0800
committerBrian Behlendorf <[email protected]>2011-02-04 16:14:34 -0800
commit872e8d26978a8e1caa1ca7d931db7f95d987a3e7 (patch)
tree2438ba30143494d817a1cbc9f61bb56496455a60 /include/sys/dmu.h
parentb4ead57cfb410247eee4d2a8a6e488cf4542ac77 (diff)
Add initial rw_uio functions to the dmu
These functions were dropped originally because I felt they would need to be rewritten anyway to avoid using uios. However, this patch readds then with they dea they can just be reworked and the uio bits dropped.
Diffstat (limited to 'include/sys/dmu.h')
-rw-r--r--include/sys/dmu.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/sys/dmu.h b/include/sys/dmu.h
index 575cb2d10..a8edfdbf8 100644
--- a/include/sys/dmu.h
+++ b/include/sys/dmu.h
@@ -515,12 +515,18 @@ void dmu_prealloc(objset_t *os, uint64_t object, uint64_t offset, uint64_t size,
dmu_tx_t *tx);
#ifdef _KERNEL
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);
-#endif
+int dmu_write_req(objset_t *os, uint64_t object, struct request *req,
+ dmu_tx_t *tx);
+int dmu_read_uio(objset_t *os, uint64_t object, struct uio *uio, uint64_t size);
+int dmu_write_uio(objset_t *os, uint64_t object, struct uio *uio, uint64_t size,
+ dmu_tx_t *tx);
+int dmu_write_uio_dbuf(dmu_buf_t *zdb, struct uio *uio, uint64_t size,
+ dmu_tx_t *tx);
#ifdef HAVE_ZPL
int dmu_write_pages(objset_t *os, uint64_t object, uint64_t offset,
uint64_t size, struct page *pp, dmu_tx_t *tx);
#endif
+#endif
struct arc_buf *dmu_request_arcbuf(dmu_buf_t *handle, int size);
void dmu_return_arcbuf(struct arc_buf *buf);
void dmu_assign_arcbuf(dmu_buf_t *handle, uint64_t offset, struct arc_buf *buf,