Print this page
patch first-pass

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dnode.c
          +++ new/usr/src/uts/common/fs/zfs/dnode.c
↓ open down ↓ 1132 lines elided ↑ open up ↑
1133 1133          if (children_dnodes == NULL) {
1134 1134                  int i;
1135 1135                  dnode_children_t *winner;
1136 1136                  children_dnodes = kmem_zalloc(sizeof (dnode_children_t) +
1137 1137                      epb * sizeof (dnode_handle_t), KM_SLEEP);
1138 1138                  children_dnodes->dnc_count = epb;
1139 1139                  dnh = &children_dnodes->dnc_children[0];
1140 1140                  for (i = 0; i < epb; i++) {
1141 1141                          zrl_init(&dnh[i].dnh_zrlock);
1142 1142                  }
1143      -                dmu_buf_init_user(&children_dnodes->dnc_dbu,
     1143 +                dmu_buf_init_user(&children_dnodes->dnc_dbu, NULL,
1144 1144                      dnode_buf_pageout, NULL);
1145 1145                  winner = dmu_buf_set_user(&db->db, &children_dnodes->dnc_dbu);
1146 1146                  if (winner != NULL) {
1147 1147  
1148 1148                          for (i = 0; i < epb; i++) {
1149 1149                                  zrl_destroy(&dnh[i].dnh_zrlock);
1150 1150                          }
1151 1151  
1152 1152                          kmem_free(children_dnodes, sizeof (dnode_children_t) +
1153 1153                              epb * sizeof (dnode_handle_t));
↓ open down ↓ 886 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX