bpobj.h (225736) | bpobj.h (243674) |
---|---|
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 --- 6 unchanged lines hidden (view full) --- 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2010, Oracle and/or its affiliates. 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 --- 6 unchanged lines hidden (view full) --- 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2012 by Delphix. All rights reserved. |
|
23 */ 24 25#ifndef _SYS_BPOBJ_H 26#define _SYS_BPOBJ_H 27 28#include <sys/dmu.h> 29#include <sys/spa.h> 30#include <sys/txg.h> --- 31 unchanged lines hidden (view full) --- 62 bpobj_phys_t *bpo_phys; 63 dmu_buf_t *bpo_dbuf; 64 dmu_buf_t *bpo_cached_dbuf; 65} bpobj_t; 66 67typedef int bpobj_itor_t(void *arg, const blkptr_t *bp, dmu_tx_t *tx); 68 69uint64_t bpobj_alloc(objset_t *mos, int blocksize, dmu_tx_t *tx); | 24 */ 25 26#ifndef _SYS_BPOBJ_H 27#define _SYS_BPOBJ_H 28 29#include <sys/dmu.h> 30#include <sys/spa.h> 31#include <sys/txg.h> --- 31 unchanged lines hidden (view full) --- 63 bpobj_phys_t *bpo_phys; 64 dmu_buf_t *bpo_dbuf; 65 dmu_buf_t *bpo_cached_dbuf; 66} bpobj_t; 67 68typedef int bpobj_itor_t(void *arg, const blkptr_t *bp, dmu_tx_t *tx); 69 70uint64_t bpobj_alloc(objset_t *mos, int blocksize, dmu_tx_t *tx); |
71uint64_t bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx); |
|
70void bpobj_free(objset_t *os, uint64_t obj, dmu_tx_t *tx); | 72void bpobj_free(objset_t *os, uint64_t obj, dmu_tx_t *tx); |
73void bpobj_decr_empty(objset_t *os, dmu_tx_t *tx); |
|
71 72int bpobj_open(bpobj_t *bpo, objset_t *mos, uint64_t object); 73void bpobj_close(bpobj_t *bpo); 74 75int bpobj_iterate(bpobj_t *bpo, bpobj_itor_t func, void *arg, dmu_tx_t *tx); 76int bpobj_iterate_nofree(bpobj_t *bpo, bpobj_itor_t func, void *, dmu_tx_t *); 77int bpobj_iterate_dbg(bpobj_t *bpo, uint64_t *itorp, blkptr_t *bp); 78 --- 13 unchanged lines hidden --- | 74 75int bpobj_open(bpobj_t *bpo, objset_t *mos, uint64_t object); 76void bpobj_close(bpobj_t *bpo); 77 78int bpobj_iterate(bpobj_t *bpo, bpobj_itor_t func, void *arg, dmu_tx_t *tx); 79int bpobj_iterate_nofree(bpobj_t *bpo, bpobj_itor_t func, void *, dmu_tx_t *); 80int bpobj_iterate_dbg(bpobj_t *bpo, uint64_t *itorp, blkptr_t *bp); 81 --- 13 unchanged lines hidden --- |