sa.c (247406) | sa.c (248369) |
---|---|
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 --- 646 unchanged lines hidden (view full) --- 655 sa_os_t *sa = hdl->sa_os->os_sa; 656 uint64_t hash; 657 sa_buf_type_t buftype; 658 sa_hdr_phys_t *sahdr; 659 void *data_start; 660 int buf_space; 661 sa_attr_type_t *attrs, *attrs_start; 662 int i, lot_count; | 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 --- 646 unchanged lines hidden (view full) --- 655 sa_os_t *sa = hdl->sa_os->os_sa; 656 uint64_t hash; 657 sa_buf_type_t buftype; 658 sa_hdr_phys_t *sahdr; 659 void *data_start; 660 int buf_space; 661 sa_attr_type_t *attrs, *attrs_start; 662 int i, lot_count; |
663 int hdrsize, spillhdrsize; | 663 int hdrsize; 664 int spillhdrsize = 0; |
664 int used; 665 dmu_object_type_t bonustype; 666 sa_lot_t *lot; 667 int len_idx; 668 int spill_used; 669 boolean_t spilling; 670 671 dmu_buf_will_dirty(hdl->sa_bonus, tx); --- 160 unchanged lines hidden (view full) --- 832 sa->sa_attr_table = NULL; 833} 834 835static int 836sa_attr_table_setup(objset_t *os, sa_attr_reg_t *reg_attrs, int count) 837{ 838 sa_os_t *sa = os->os_sa; 839 uint64_t sa_attr_count = 0; | 665 int used; 666 dmu_object_type_t bonustype; 667 sa_lot_t *lot; 668 int len_idx; 669 int spill_used; 670 boolean_t spilling; 671 672 dmu_buf_will_dirty(hdl->sa_bonus, tx); --- 160 unchanged lines hidden (view full) --- 833 sa->sa_attr_table = NULL; 834} 835 836static int 837sa_attr_table_setup(objset_t *os, sa_attr_reg_t *reg_attrs, int count) 838{ 839 sa_os_t *sa = os->os_sa; 840 uint64_t sa_attr_count = 0; |
840 uint64_t sa_reg_count; | 841 uint64_t sa_reg_count = 0; |
841 int error = 0; 842 uint64_t attr_value; 843 sa_attr_table_t *tb; 844 zap_cursor_t zc; 845 zap_attribute_t za; 846 int registered_count = 0; 847 int i; 848 dmu_objset_type_t ostype = dmu_objset_type(os); --- 791 unchanged lines hidden (view full) --- 1640 uint16_t buflen, dmu_tx_t *tx) 1641{ 1642 sa_os_t *sa = hdl->sa_os->os_sa; 1643 dmu_buf_impl_t *db = (dmu_buf_impl_t *)hdl->sa_bonus; 1644 dnode_t *dn; 1645 sa_bulk_attr_t *attr_desc; 1646 void *old_data[2]; 1647 int bonus_attr_count = 0; | 842 int error = 0; 843 uint64_t attr_value; 844 sa_attr_table_t *tb; 845 zap_cursor_t zc; 846 zap_attribute_t za; 847 int registered_count = 0; 848 int i; 849 dmu_objset_type_t ostype = dmu_objset_type(os); --- 791 unchanged lines hidden (view full) --- 1641 uint16_t buflen, dmu_tx_t *tx) 1642{ 1643 sa_os_t *sa = hdl->sa_os->os_sa; 1644 dmu_buf_impl_t *db = (dmu_buf_impl_t *)hdl->sa_bonus; 1645 dnode_t *dn; 1646 sa_bulk_attr_t *attr_desc; 1647 void *old_data[2]; 1648 int bonus_attr_count = 0; |
1648 int bonus_data_size, spill_data_size; | 1649 int bonus_data_size = 0; 1650 int spill_data_size = 0; |
1649 int spill_attr_count = 0; 1650 int error; 1651 uint16_t length; 1652 int i, j, k, length_idx; 1653 sa_hdr_phys_t *hdr; 1654 sa_idx_tab_t *idx_tab; 1655 int attr_count; 1656 int count; --- 346 unchanged lines hidden --- | 1651 int spill_attr_count = 0; 1652 int error; 1653 uint16_t length; 1654 int i, j, k, length_idx; 1655 sa_hdr_phys_t *hdr; 1656 sa_idx_tab_t *idx_tab; 1657 int attr_count; 1658 int count; --- 346 unchanged lines hidden --- |