bpobj.c (321548) | bpobj.c (324010) |
---|---|
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 --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright (c) 2011, 2016 by Delphix. All rights reserved. 24 * Copyright (c) 2014 Integros [integros.com] | 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 --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright (c) 2011, 2016 by Delphix. All rights reserved. 24 * Copyright (c) 2014 Integros [integros.com] |
25 * Copyright (c) 2017 Datto Inc. |
|
25 */ 26 27#include <sys/bpobj.h> 28#include <sys/zfs_context.h> 29#include <sys/refcount.h> 30#include <sys/dsl_pool.h> 31#include <sys/zfeature.h> 32#include <sys/zap.h> --- 174 unchanged lines hidden (view full) --- 207 dmu_object_info_t doi; 208 int epb; 209 int64_t i; 210 int err = 0; 211 dmu_buf_t *dbuf = NULL; 212 213 mutex_enter(&bpo->bpo_lock); 214 | 26 */ 27 28#include <sys/bpobj.h> 29#include <sys/zfs_context.h> 30#include <sys/refcount.h> 31#include <sys/dsl_pool.h> 32#include <sys/zfeature.h> 33#include <sys/zap.h> --- 174 unchanged lines hidden (view full) --- 208 dmu_object_info_t doi; 209 int epb; 210 int64_t i; 211 int err = 0; 212 dmu_buf_t *dbuf = NULL; 213 214 mutex_enter(&bpo->bpo_lock); 215 |
216 if (!bpobj_hasentries(bpo)) 217 goto out; 218 |
|
215 if (free) 216 dmu_buf_will_dirty(bpo->bpo_dbuf, tx); 217 218 for (i = bpo->bpo_phys->bpo_num_blkptrs - 1; i >= 0; i--) { 219 blkptr_t *bparray; 220 blkptr_t *bp; 221 uint64_t offset, blkoff; 222 --- 370 unchanged lines hidden --- | 219 if (free) 220 dmu_buf_will_dirty(bpo->bpo_dbuf, tx); 221 222 for (i = bpo->bpo_phys->bpo_num_blkptrs - 1; i >= 0; i--) { 223 blkptr_t *bparray; 224 blkptr_t *bp; 225 uint64_t offset, blkoff; 226 --- 370 unchanged lines hidden --- |