zvol.c (238656) | zvol.c (239774) |
---|---|
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 --- 657 unchanged lines hidden (view full) --- 666 return (error); 667} 668 669void 670zvol_last_close(zvol_state_t *zv) 671{ 672 zil_close(zv->zv_zilog); 673 zv->zv_zilog = NULL; | 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 --- 657 unchanged lines hidden (view full) --- 666 return (error); 667} 668 669void 670zvol_last_close(zvol_state_t *zv) 671{ 672 zil_close(zv->zv_zilog); 673 zv->zv_zilog = NULL; |
674 |
|
674 dmu_buf_rele(zv->zv_dbuf, zvol_tag); 675 zv->zv_dbuf = NULL; | 675 dmu_buf_rele(zv->zv_dbuf, zvol_tag); 676 zv->zv_dbuf = NULL; |
677 678 /* 679 * Evict cached data 680 */ 681 if (dsl_dataset_is_dirty(dmu_objset_ds(zv->zv_objset)) && 682 !(zv->zv_flags & ZVOL_RDONLY)) 683 txg_wait_synced(dmu_objset_pool(zv->zv_objset), 0); 684 (void) dmu_objset_evict_dbufs(zv->zv_objset); 685 |
|
676 dmu_objset_disown(zv->zv_objset, zvol_tag); 677 zv->zv_objset = NULL; 678} 679 680#ifdef sun 681int 682zvol_prealloc(zvol_state_t *zv) 683{ --- 1609 unchanged lines hidden --- | 686 dmu_objset_disown(zv->zv_objset, zvol_tag); 687 zv->zv_objset = NULL; 688} 689 690#ifdef sun 691int 692zvol_prealloc(zvol_state_t *zv) 693{ --- 1609 unchanged lines hidden --- |