dsl_dir.h (302408) | dsl_dir.h (307108) |
---|---|
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 --- 98 unchanged lines hidden (view full) --- 107 uint64_t dd_origin_txg; 108 109 /* gross estimate of space used by in-flight tx's */ 110 uint64_t dd_tempreserved[TXG_SIZE]; 111 /* amount of space we expect to write; == amount of dirty data */ 112 int64_t dd_space_towrite[TXG_SIZE]; 113 114 /* protected by dd_lock; keep at end of struct for better locality */ | 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 --- 98 unchanged lines hidden (view full) --- 107 uint64_t dd_origin_txg; 108 109 /* gross estimate of space used by in-flight tx's */ 110 uint64_t dd_tempreserved[TXG_SIZE]; 111 /* amount of space we expect to write; == amount of dirty data */ 112 int64_t dd_space_towrite[TXG_SIZE]; 113 114 /* protected by dd_lock; keep at end of struct for better locality */ |
115 char dd_myname[MAXNAMELEN]; | 115 char dd_myname[ZFS_MAX_DATASET_NAME_LEN]; |
116}; 117 118inline dsl_dir_phys_t * 119dsl_dir_phys(dsl_dir_t *dd) 120{ 121 return (dd->dd_dbuf->db_data); 122} 123 --- 47 unchanged lines hidden (view full) --- 171#define ORIGIN_DIR_NAME "$ORIGIN" 172#define XLATION_DIR_NAME "$XLATION" 173#define FREE_DIR_NAME "$FREE" 174#define LEAK_DIR_NAME "$LEAK" 175 176#ifdef ZFS_DEBUG 177#define dprintf_dd(dd, fmt, ...) do { \ 178 if (zfs_flags & ZFS_DEBUG_DPRINTF) { \ | 116}; 117 118inline dsl_dir_phys_t * 119dsl_dir_phys(dsl_dir_t *dd) 120{ 121 return (dd->dd_dbuf->db_data); 122} 123 --- 47 unchanged lines hidden (view full) --- 171#define ORIGIN_DIR_NAME "$ORIGIN" 172#define XLATION_DIR_NAME "$XLATION" 173#define FREE_DIR_NAME "$FREE" 174#define LEAK_DIR_NAME "$LEAK" 175 176#ifdef ZFS_DEBUG 177#define dprintf_dd(dd, fmt, ...) do { \ 178 if (zfs_flags & ZFS_DEBUG_DPRINTF) { \ |
179 char *__ds_name = kmem_alloc(MAXNAMELEN + strlen(MOS_DIR_NAME) + 1, \ 180 KM_SLEEP); \ | 179 char *__ds_name = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); \ |
181 dsl_dir_name(dd, __ds_name); \ 182 dprintf("dd=%s " fmt, __ds_name, __VA_ARGS__); \ | 180 dsl_dir_name(dd, __ds_name); \ 181 dprintf("dd=%s " fmt, __ds_name, __VA_ARGS__); \ |
183 kmem_free(__ds_name, MAXNAMELEN + strlen(MOS_DIR_NAME) + 1); \ | 182 kmem_free(__ds_name, ZFS_MAX_DATASET_NAME_LEN); \ |
184 } \ 185_NOTE(CONSTCOND) } while (0) 186#else 187#define dprintf_dd(dd, fmt, ...) 188#endif 189 190#ifdef __cplusplus 191} 192#endif 193 194#endif /* _SYS_DSL_DIR_H */ | 183 } \ 184_NOTE(CONSTCOND) } while (0) 185#else 186#define dprintf_dd(dd, fmt, ...) 187#endif 188 189#ifdef __cplusplus 190} 191#endif 192 193#endif /* _SYS_DSL_DIR_H */ |