From f8bdab5da87c90d68903aef3cc3ec63e89bb998f Mon Sep 17 00:00:00 2001 From: rcorreia Date: Tue, 11 Aug 2009 02:46:51 +0000 Subject: [PATCH] Branch b_hd_kdmu b=17577 Fixed dmu_read() calls due to new API in the most recent DMU code. --- lustre/dmu-osd/udmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/dmu-osd/udmu.c b/lustre/dmu-osd/udmu.c index 930f482..1a24191 100644 --- a/lustre/dmu-osd/udmu.c +++ b/lustre/dmu-osd/udmu.c @@ -685,7 +685,7 @@ static int udmu_object_read_impl(objset_t *os, dmu_buf_t *db, uint64_t offset, size = va.va_size - offset; } - rc = dmu_read(os, oid, offset, size, buf); + rc = dmu_read(os, oid, offset, size, buf, DMU_READ_PREFETCH); if (rc == 0) return size; else @@ -1072,7 +1072,7 @@ int udmu_xattr_get(udmu_objset_t *uos, dmu_buf_t *db, void *buf, goto out; } - error = dmu_read(uos->os, xa_data_db->db_object, 0, xa_data_va.va_size, buf); + error = dmu_read(uos->os, xa_data_db->db_object, 0, xa_data_va.va_size, buf, DMU_READ_PREFETCH); out: udmu_object_put_dmu_buf(xa_data_db, FTAG); -- 1.8.3.1