|
22 | 22 | /*
|
23 | 23 | * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
24 | 24 | * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
|
25 |
| - * Copyright (c) 2013 by Delphix. All rights reserved. |
| 25 | + * Copyright (c) 2012, 2014 by Delphix. All rights reserved. |
26 | 26 | * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
|
27 | 27 | */
|
28 | 28 |
|
@@ -263,11 +263,11 @@ extern const char *zio_type_name[ZIO_TYPES];
|
263 | 263 | * Note: this structure is called a bookmark because its original purpose
|
264 | 264 | * was to remember where to resume a pool-wide traverse.
|
265 | 265 | *
|
266 |
| - * Note: this structure is passed between userland and the kernel. |
267 |
| - * Therefore it must not change size or alignment between 32/64 bit |
268 |
| - * compilation options. |
| 266 | + * Note: this structure is passed between userland and the kernel, and is |
| 267 | + * stored on disk (by virtue of being incorporated into other on-disk |
| 268 | + * structures, e.g. dsl_scan_phys_t). |
269 | 269 | */
|
270 |
| -struct zbookmark { |
| 270 | +struct zbookmark_phys { |
271 | 271 | uint64_t zb_objset;
|
272 | 272 | uint64_t zb_object;
|
273 | 273 | int64_t zb_level;
|
@@ -383,7 +383,7 @@ typedef struct zio_link {
|
383 | 383 |
|
384 | 384 | struct zio {
|
385 | 385 | /* Core information about this I/O */
|
386 |
| - zbookmark_t io_bookmark; |
| 386 | + zbookmark_phys_t io_bookmark; |
387 | 387 | zio_prop_t io_prop;
|
388 | 388 | zio_type_t io_type;
|
389 | 389 | enum zio_child io_child_type;
|
@@ -464,17 +464,17 @@ extern zio_t *zio_root(spa_t *spa,
|
464 | 464 |
|
465 | 465 | extern zio_t *zio_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, void *data,
|
466 | 466 | uint64_t size, zio_done_func_t *done, void *private,
|
467 |
| - zio_priority_t priority, enum zio_flag flags, const zbookmark_t *zb); |
| 467 | + zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb); |
468 | 468 |
|
469 | 469 | extern zio_t *zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
|
470 | 470 | void *data, uint64_t size, const zio_prop_t *zp,
|
471 | 471 | zio_done_func_t *ready, zio_done_func_t *physdone, zio_done_func_t *done,
|
472 | 472 | void *private,
|
473 |
| - zio_priority_t priority, enum zio_flag flags, const zbookmark_t *zb); |
| 473 | + zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb); |
474 | 474 |
|
475 | 475 | extern zio_t *zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
|
476 | 476 | void *data, uint64_t size, zio_done_func_t *done, void *private,
|
477 |
| - zio_priority_t priority, enum zio_flag flags, zbookmark_t *zb); |
| 477 | + zio_priority_t priority, enum zio_flag flags, zbookmark_phys_t *zb); |
478 | 478 |
|
479 | 479 | extern void zio_write_override(zio_t *zio, blkptr_t *bp, int copies,
|
480 | 480 | boolean_t nopwrite);
|
@@ -595,9 +595,9 @@ extern void zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd,
|
595 | 595 | /* Called from spa_sync(), but primarily an injection handler */
|
596 | 596 | extern void spa_handle_ignored_writes(spa_t *spa);
|
597 | 597 |
|
598 |
| -/* zbookmark functions */ |
| 598 | +/* zbookmark_phys functions */ |
599 | 599 | boolean_t zbookmark_is_before(const struct dnode_phys *dnp,
|
600 |
| - const zbookmark_t *zb1, const zbookmark_t *zb2); |
| 600 | + const zbookmark_phys_t *zb1, const zbookmark_phys_t *zb2); |
601 | 601 |
|
602 | 602 | #ifdef __cplusplus
|
603 | 603 | }
|
|
0 commit comments