Lines Matching defs:new_size
122 static int grow_table(struct bucket **buf_ptr, int num_buckets, int new_size);
723 grow_table(struct bucket **buf_ptr, int num_buckets, int new_size)
729 if (new_size < num_buckets) {
733 if ((MALLOC(newBuf, struct bucket *, new_size*sizeof(struct bucket), M_TEMP, M_WAITOK)) == NULL) {
738 // printf("jnl: lookup_bucket: expanded co_buf to %d elems\n", new_size);
744 for(i=num_buckets; i < new_size; i++) {
754 return new_size;
820 int new_size = *num_buckets_ptr * 2;
821 int grow_size = grow_table(buf_ptr, *num_buckets_ptr, new_size);
823 if (grow_size < new_size) {
879 size_t new_size = prev_block_end - block_end;
883 err = insert_block(jnl, buf_ptr, blk_index, new_num, new_size, new_offset, cksum, num_buckets_ptr, num_full_ptr, 0);