dsl_dataset.c (283524) | dsl_dataset.c (286541) |
---|---|
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 --- 355 unchanged lines hidden (view full) --- 364 365 if (err == 0 && adj_cnt) 366 dsl_fs_ss_count_adjust(ds->ds_dir, -1, 367 DD_FIELD_SNAPSHOT_COUNT, tx); 368 369 return (err); 370} 371 | 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 --- 355 unchanged lines hidden (view full) --- 364 365 if (err == 0 && adj_cnt) 366 dsl_fs_ss_count_adjust(ds->ds_dir, -1, 367 DD_FIELD_SNAPSHOT_COUNT, tx); 368 369 return (err); 370} 371 |
372boolean_t 373dsl_dataset_try_add_ref(dsl_pool_t *dp, dsl_dataset_t *ds, void *tag) 374{ 375 return (dmu_buf_try_add_ref(ds->ds_dbuf, dp->dp_meta_objset, 376 ds->ds_object, DMU_BONUS_BLKID, tag)); 377} 378 |
|
372int 373dsl_dataset_hold_obj(dsl_pool_t *dp, uint64_t dsobj, void *tag, 374 dsl_dataset_t **dsp) 375{ 376 objset_t *mos = dp->dp_meta_objset; 377 dmu_buf_t *dbuf; 378 dsl_dataset_t *ds; 379 int err; --- 3057 unchanged lines hidden --- | 379int 380dsl_dataset_hold_obj(dsl_pool_t *dp, uint64_t dsobj, void *tag, 381 dsl_dataset_t **dsp) 382{ 383 objset_t *mos = dp->dp_meta_objset; 384 dmu_buf_t *dbuf; 385 dsl_dataset_t *ds; 386 int err; --- 3057 unchanged lines hidden --- |