Deleted Added
full compact
zio.h (339034) zio.h (339105)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 8 unchanged lines hidden (view full) ---

17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 8 unchanged lines hidden (view full) ---

17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25 * Copyright (c) 2012, 2017 by Delphix. All rights reserved.
25 * Copyright (c) 2012, 2018 by Delphix. All rights reserved.
26 * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
27 * Copyright 2016 Toomas Soome <tsoome@me.com>
28 */
29
30#ifndef _ZIO_H
31#define _ZIO_H
32
33#include <sys/zio_priority.h>

--- 450 unchanged lines hidden (view full) ---

484 uint64_t io_parent_count;
485 uint64_t *io_stall;
486 zio_t *io_gang_leader;
487 zio_gang_node_t *io_gang_tree;
488 void *io_executor;
489 void *io_waiter;
490 kmutex_t io_lock;
491 kcondvar_t io_cv;
26 * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
27 * Copyright 2016 Toomas Soome <tsoome@me.com>
28 */
29
30#ifndef _ZIO_H
31#define _ZIO_H
32
33#include <sys/zio_priority.h>

--- 450 unchanged lines hidden (view full) ---

484 uint64_t io_parent_count;
485 uint64_t *io_stall;
486 zio_t *io_gang_leader;
487 zio_gang_node_t *io_gang_tree;
488 void *io_executor;
489 void *io_waiter;
490 kmutex_t io_lock;
491 kcondvar_t io_cv;
492 int io_allocator;
492
493 /* FMA state */
494 zio_cksum_report_t *io_cksum_report;
495 uint64_t io_ena;
496
497 /* Taskq dispatching state */
498 taskq_ent_t io_tqent;
499

--- 45 unchanged lines hidden (view full) ---

545extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset,
546 uint64_t size, struct abd *data, int checksum,
547 zio_done_func_t *done, void *priv, zio_priority_t priority,
548 enum zio_flag flags, boolean_t labels);
549
550extern zio_t *zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg,
551 const blkptr_t *bp, uint64_t size, enum zio_flag flags);
552
493
494 /* FMA state */
495 zio_cksum_report_t *io_cksum_report;
496 uint64_t io_ena;
497
498 /* Taskq dispatching state */
499 taskq_ent_t io_tqent;
500

--- 45 unchanged lines hidden (view full) ---

546extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset,
547 uint64_t size, struct abd *data, int checksum,
548 zio_done_func_t *done, void *priv, zio_priority_t priority,
549 enum zio_flag flags, boolean_t labels);
550
551extern zio_t *zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg,
552 const blkptr_t *bp, uint64_t size, enum zio_flag flags);
553
553extern int zio_alloc_zil(spa_t *spa, uint64_t txg, blkptr_t *new_bp,
554 blkptr_t *old_bp, uint64_t size, boolean_t *slog);
554extern int zio_alloc_zil(spa_t *spa, uint64_t objset, uint64_t txg,
555 blkptr_t *new_bp, blkptr_t *old_bp, uint64_t size, boolean_t *slog);
555extern void zio_flush(zio_t *zio, vdev_t *vd);
556extern zio_t *zio_trim(zio_t *zio, spa_t *spa, vdev_t *vd, uint64_t offset,
557 uint64_t size);
558extern void zio_shrink(zio_t *zio, uint64_t size);
559
560extern int zio_wait(zio_t *zio);
561extern void zio_nowait(zio_t *zio);
562extern void zio_execute(zio_t *zio);

--- 102 unchanged lines hidden ---
556extern void zio_flush(zio_t *zio, vdev_t *vd);
557extern zio_t *zio_trim(zio_t *zio, spa_t *spa, vdev_t *vd, uint64_t offset,
558 uint64_t size);
559extern void zio_shrink(zio_t *zio, uint64_t size);
560
561extern int zio_wait(zio_t *zio);
562extern void zio_nowait(zio_t *zio);
563extern void zio_execute(zio_t *zio);

--- 102 unchanged lines hidden ---