Lines 161-167
Link Here
|
161 |
*/ |
161 |
*/ |
162 |
static int |
162 |
static int |
163 |
dmu_buf_hold_array_by_dnode(dnode_t *dn, uint64_t offset, |
163 |
dmu_buf_hold_array_by_dnode(dnode_t *dn, uint64_t offset, |
164 |
uint64_t length, int read, void *tag, int *numbufsp, dmu_buf_t ***dbpp) |
164 |
uint64_t length, int read, const void *tag, int *numbufsp, dmu_buf_t ***dbpp) |
165 |
{ |
165 |
{ |
166 |
dmu_buf_t **dbp; |
166 |
dmu_buf_t **dbp; |
167 |
uint64_t blkid, nblks, i; |
167 |
uint64_t blkid, nblks, i; |
Lines 238-244
Link Here
|
238 |
|
238 |
|
239 |
static int |
239 |
static int |
240 |
dmu_buf_hold_array(objset_t *os, uint64_t object, uint64_t offset, |
240 |
dmu_buf_hold_array(objset_t *os, uint64_t object, uint64_t offset, |
241 |
uint64_t length, int read, void *tag, int *numbufsp, dmu_buf_t ***dbpp) |
241 |
uint64_t length, int read, const void *tag, int *numbufsp, dmu_buf_t ***dbpp) |
242 |
{ |
242 |
{ |
243 |
dnode_t *dn; |
243 |
dnode_t *dn; |
244 |
int err; |
244 |
int err; |
Lines 257-263
Link Here
|
257 |
|
257 |
|
258 |
int |
258 |
int |
259 |
dmu_buf_hold_array_by_bonus(dmu_buf_t *db, uint64_t offset, |
259 |
dmu_buf_hold_array_by_bonus(dmu_buf_t *db, uint64_t offset, |
260 |
uint64_t length, int read, void *tag, int *numbufsp, dmu_buf_t ***dbpp) |
260 |
uint64_t length, int read, const void *tag, int *numbufsp, dmu_buf_t ***dbpp) |
261 |
{ |
261 |
{ |
262 |
dnode_t *dn = ((dmu_buf_impl_t *)db)->db_dnode; |
262 |
dnode_t *dn = ((dmu_buf_impl_t *)db)->db_dnode; |
263 |
int err; |
263 |
int err; |
Lines 269-275
Link Here
|
269 |
} |
269 |
} |
270 |
|
270 |
|
271 |
void |
271 |
void |
272 |
dmu_buf_rele_array(dmu_buf_t **dbp_fake, int numbufs, void *tag) |
272 |
dmu_buf_rele_array(dmu_buf_t **dbp_fake, int numbufs, const void *tag) |
273 |
{ |
273 |
{ |
274 |
int i; |
274 |
int i; |
275 |
dmu_buf_impl_t **dbp = (dmu_buf_impl_t **)dbp_fake; |
275 |
dmu_buf_impl_t **dbp = (dmu_buf_impl_t **)dbp_fake; |