Deleted Added
full compact
zap_micro.c (236884) zap_micro.c (240415)
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

--- 503 unchanged lines hidden (view full) ---

512 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE;
513 if (newsz > MZAP_MAX_BLKSZ) {
514 dprintf("upgrading obj %llu: num_entries=%u\n",
515 obj, zap->zap_m.zap_num_entries);
516 *zapp = zap;
517 return (mzap_upgrade(zapp, tx, 0));
518 }
519 err = dmu_object_set_blocksize(os, obj, newsz, 0, tx);
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

--- 503 unchanged lines hidden (view full) ---

512 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE;
513 if (newsz > MZAP_MAX_BLKSZ) {
514 dprintf("upgrading obj %llu: num_entries=%u\n",
515 obj, zap->zap_m.zap_num_entries);
516 *zapp = zap;
517 return (mzap_upgrade(zapp, tx, 0));
518 }
519 err = dmu_object_set_blocksize(os, obj, newsz, 0, tx);
520 ASSERT3U(err, ==, 0);
520 ASSERT0(err);
521 zap->zap_m.zap_num_chunks =
522 db->db_size / MZAP_ENT_LEN - 1;
523 }
524
525 *zapp = zap;
526 return (0);
527}
528

--- 939 unchanged lines hidden ---
521 zap->zap_m.zap_num_chunks =
522 db->db_size / MZAP_ENT_LEN - 1;
523 }
524
525 *zapp = zap;
526 return (0);
527}
528

--- 939 unchanged lines hidden ---