aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/dmu.c
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2017-06-13 12:18:08 -0400
committerBrian Behlendorf <[email protected]>2017-06-13 09:18:08 -0700
commit5228cf011626081ee5dd4b6ce6fd31857d494e93 (patch)
treecf5b578fa63b763ec7482146325a92bc90199dd3 /module/zfs/dmu.c
parent1fbfcf115979c707e636167fac6c10fec4ff5657 (diff)
Make zvol operations use _by_dnode routines
This continues what was started in 0eef1bde31d67091d3deed23fe2394f5a8bf2276 by fully converting zvols to avoid unnecessary dnode_hold() calls. This saves a small amount of CPU time and slightly improves latencies of operations on zvols. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #6058
Diffstat (limited to 'module/zfs/dmu.c')
-rw-r--r--module/zfs/dmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c
index 5cf09412f..48e89eef4 100644
--- a/module/zfs/dmu.c
+++ b/module/zfs/dmu.c
@@ -1225,7 +1225,7 @@ xuio_stat_wbuf_nocopy(void)
}
#ifdef _KERNEL
-static int
+int
dmu_read_uio_dnode(dnode_t *dn, uio_t *uio, uint64_t size)
{
dmu_buf_t **dbp;
@@ -1334,7 +1334,7 @@ dmu_read_uio(objset_t *os, uint64_t object, uio_t *uio, uint64_t size)
return (err);
}
-static int
+int
dmu_write_uio_dnode(dnode_t *dn, uio_t *uio, uint64_t size, dmu_tx_t *tx)
{
dmu_buf_t **dbp;