aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2023-09-21 21:40:13 -0400
committerGitHub <[email protected]>2023-09-21 18:40:13 -0700
commite5d70f4677afb567151c9396b5ab1e8e3549e2ee (patch)
tree99d7912f5c1142d16cfa8286c3c2ebf3b8c62f67 /cmd
parent7ac56b86cd69487fa018b6c92cb2cfb2f82fefba (diff)
ZIL: Avoid dbuf_read() in ztest_get_data()
While working on similar patches for zfs and zvol in #15153 I've forgot about ztest. Update it also so that we test the same code paths as use in production. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #15301
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ztest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/ztest.c b/cmd/ztest.c
index 59c4be225..9c5a69440 100644
--- a/cmd/ztest.c
+++ b/cmd/ztest.c
@@ -2457,8 +2457,7 @@ ztest_get_data(void *arg, uint64_t arg2, lr_write_t *lr, char *buf,
zgd->zgd_lr = (struct zfs_locked_range *)ztest_range_lock(zd,
object, offset, size, RL_READER);
- error = dmu_buf_hold(os, object, offset, zgd, &db,
- DMU_READ_NO_PREFETCH);
+ error = dmu_buf_hold_noread(os, object, offset, zgd, &db);
if (error == 0) {
blkptr_t *bp = &lr->lr_blkptr;