zvol.c (241769) | zvol.c (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 --- 675 unchanged lines hidden (view full) --- 684 return (error); 685} 686 687void 688zvol_last_close(zvol_state_t *zv) 689{ 690 zil_close(zv->zv_zilog); 691 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 --- 675 unchanged lines hidden (view full) --- 684 return (error); 685} 686 687void 688zvol_last_close(zvol_state_t *zv) 689{ 690 zil_close(zv->zv_zilog); 691 zv->zv_zilog = NULL; |
692 |
|
692 dmu_buf_rele(zv->zv_dbuf, zvol_tag); 693 zv->zv_dbuf = NULL; | 693 dmu_buf_rele(zv->zv_dbuf, zvol_tag); 694 zv->zv_dbuf = NULL; |
695 696 /* 697 * Evict cached data 698 */ 699 if (dsl_dataset_is_dirty(dmu_objset_ds(zv->zv_objset)) && 700 !(zv->zv_flags & ZVOL_RDONLY)) 701 txg_wait_synced(dmu_objset_pool(zv->zv_objset), 0); 702 (void) dmu_objset_evict_dbufs(zv->zv_objset); 703 |
|
694 dmu_objset_disown(zv->zv_objset, zvol_tag); 695 zv->zv_objset = NULL; 696} 697 698#ifdef sun 699int 700zvol_prealloc(zvol_state_t *zv) 701{ --- 1627 unchanged lines hidden --- | 704 dmu_objset_disown(zv->zv_objset, zvol_tag); 705 zv->zv_objset = NULL; 706} 707 708#ifdef sun 709int 710zvol_prealloc(zvol_state_t *zv) 711{ --- 1627 unchanged lines hidden --- |