zap_impl.h (275782) | zap_impl.h (286575) |
---|---|
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) 2005, 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) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved. |
|
23 */ 24 25#ifndef _SYS_ZAP_IMPL_H 26#define _SYS_ZAP_IMPL_H 27 28#include <sys/zap.h> 29#include <sys/zfs_context.h> 30#include <sys/avl.h> --- 103 unchanged lines hidden (view full) --- 134 * half of the block. It is accessed using the 135 * ZAP_EMBEDDED_PTRTBL_ENT() macro. 136 */ 137} zap_phys_t; 138 139typedef struct zap_table_phys zap_table_phys_t; 140 141typedef struct zap { | 24 */ 25 26#ifndef _SYS_ZAP_IMPL_H 27#define _SYS_ZAP_IMPL_H 28 29#include <sys/zap.h> 30#include <sys/zfs_context.h> 31#include <sys/avl.h> --- 103 unchanged lines hidden (view full) --- 135 * half of the block. It is accessed using the 136 * ZAP_EMBEDDED_PTRTBL_ENT() macro. 137 */ 138} zap_phys_t; 139 140typedef struct zap_table_phys zap_table_phys_t; 141 142typedef struct zap { |
143 dmu_buf_user_t zap_dbu; |
|
142 objset_t *zap_objset; 143 uint64_t zap_object; 144 struct dmu_buf *zap_dbuf; 145 krwlock_t zap_rwlock; 146 boolean_t zap_ismicro; 147 int zap_normflags; 148 uint64_t zap_salt; 149 union { --- 40 unchanged lines hidden (view full) --- 190 191#define zap_f zap_u.zap_fat 192#define zap_m zap_u.zap_micro 193 194boolean_t zap_match(zap_name_t *zn, const char *matchname); 195int zap_lockdir(objset_t *os, uint64_t obj, dmu_tx_t *tx, 196 krw_t lti, boolean_t fatreader, boolean_t adding, zap_t **zapp); 197void zap_unlockdir(zap_t *zap); | 144 objset_t *zap_objset; 145 uint64_t zap_object; 146 struct dmu_buf *zap_dbuf; 147 krwlock_t zap_rwlock; 148 boolean_t zap_ismicro; 149 int zap_normflags; 150 uint64_t zap_salt; 151 union { --- 40 unchanged lines hidden (view full) --- 192 193#define zap_f zap_u.zap_fat 194#define zap_m zap_u.zap_micro 195 196boolean_t zap_match(zap_name_t *zn, const char *matchname); 197int zap_lockdir(objset_t *os, uint64_t obj, dmu_tx_t *tx, 198 krw_t lti, boolean_t fatreader, boolean_t adding, zap_t **zapp); 199void zap_unlockdir(zap_t *zap); |
198void zap_evict(dmu_buf_t *db, void *vmzap); | 200void zap_evict(void *dbu); |
199zap_name_t *zap_name_alloc(zap_t *zap, const char *key, matchtype_t mt); 200void zap_name_free(zap_name_t *zn); 201int zap_hashbits(zap_t *zap); 202uint32_t zap_maxcd(zap_t *zap); 203uint64_t zap_getflags(zap_t *zap); 204 205#define ZAP_HASH_IDX(hash, n) (((n) == 0) ? 0 : ((hash) >> (64 - (n)))) 206 --- 30 unchanged lines hidden --- | 201zap_name_t *zap_name_alloc(zap_t *zap, const char *key, matchtype_t mt); 202void zap_name_free(zap_name_t *zn); 203int zap_hashbits(zap_t *zap); 204uint32_t zap_maxcd(zap_t *zap); 205uint64_t zap_getflags(zap_t *zap); 206 207#define ZAP_HASH_IDX(hash, n) (((n) == 0) ? 0 : ((hash) >> (64 - (n)))) 208 --- 30 unchanged lines hidden --- |