mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Illumos 5314 - Remove "dbuf phys" db->db_data pointer aliases in ZFS
5314 Remove "dbuf phys" db->db_data pointer aliases in ZFS Author: Justin T. Gibbs <justing@spectralogic.com> Reviewed by: Andriy Gapon <avg@freebsd.org> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Will Andrews <willa@spectralogic.com> Approved by: Dan McDonald <danmcd@omniti.com> References: https://www.illumos.org/issues/5314 https://github.com/illumos/illumos-gate/commit/c137962 Ported-by: Chris Dunlop <chris@onthe.net.au> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
committed by
Brian Behlendorf
parent
945dd93525
commit
d683ddbb72
@@ -946,7 +946,7 @@ zfs_secpolicy_promote(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr)
|
||||
dd = clone->ds_dir;
|
||||
|
||||
error = dsl_dataset_hold_obj(dd->dd_pool,
|
||||
dd->dd_phys->dd_origin_obj, FTAG, &origin);
|
||||
dsl_dir_phys(dd)->dd_origin_obj, FTAG, &origin);
|
||||
if (error != 0) {
|
||||
dsl_dataset_rele(clone, FTAG);
|
||||
dsl_pool_rele(dp, FTAG);
|
||||
@@ -4249,7 +4249,8 @@ zfs_ioc_send(zfs_cmd_t *zc)
|
||||
}
|
||||
|
||||
if (dsl_dir_is_clone(tosnap->ds_dir))
|
||||
zc->zc_fromobj = tosnap->ds_dir->dd_phys->dd_origin_obj;
|
||||
zc->zc_fromobj =
|
||||
dsl_dir_phys(tosnap->ds_dir)->dd_origin_obj;
|
||||
dsl_dataset_rele(tosnap, FTAG);
|
||||
dsl_pool_rele(dp, FTAG);
|
||||
}
|
||||
@@ -4687,7 +4688,7 @@ zfs_ioc_next_obj(zfs_cmd_t *zc)
|
||||
return (error);
|
||||
|
||||
error = dmu_object_next(os, &zc->zc_obj, B_FALSE,
|
||||
os->os_dsl_dataset->ds_phys->ds_prev_snap_txg);
|
||||
dsl_dataset_phys(os->os_dsl_dataset)->ds_prev_snap_txg);
|
||||
|
||||
dmu_objset_rele(os, FTAG);
|
||||
return (error);
|
||||
|
||||
Reference in New Issue
Block a user