Lines Matching defs:tbuffer_size
1379 size_up_tbuffer(journal *jnl, int tbuffer_size, int phys_blksz)
1399 if (tbuffer_size == 0) {
1400 jnl->tbuffer_size = def_tbuffer_size;
1402 // make sure that the specified tbuffer_size isn't too small
1403 if (tbuffer_size < jnl->jhdr->blhdr_size * 2) {
1404 tbuffer_size = jnl->jhdr->blhdr_size * 2;
1407 if ((tbuffer_size % jnl->jhdr->jhdr_size) != 0) {
1408 tbuffer_size -= (tbuffer_size % jnl->jhdr->jhdr_size);
1411 jnl->tbuffer_size = tbuffer_size;
1414 if (jnl->tbuffer_size > (jnl->jhdr->size / 2)) {
1415 jnl->tbuffer_size = (jnl->jhdr->size / 2);
1418 if (jnl->tbuffer_size > MAX_TRANSACTION_BUFFER_SIZE) {
1419 jnl->tbuffer_size = MAX_TRANSACTION_BUFFER_SIZE;
1422 jnl->jhdr->blhdr_size = (jnl->tbuffer_size / jnl->jhdr->jhdr_size) * sizeof(block_info);
1510 int32_t tbuffer_size,
1570 size_up_tbuffer(jnl, tbuffer_size, phys_blksz);
1609 int32_t tbuffer_size,
1796 size_up_tbuffer(jnl, tbuffer_size, phys_blksz);
2171 tr->tbuffer_size = jnl->tbuffer_size;
2173 if (kmem_alloc(kernel_map, (vm_offset_t *)&tr->tbuffer, tr->tbuffer_size)) {
2233 if (free_space(jnl) < jnl->tbuffer_size) {
2236 if (check_free_space(jnl, jnl->tbuffer_size) != 0) {
2456 && (prev->bytes_used+buf_size(bp)) <= (uint32_t)tr->tbuffer_size) {
2472 if (kmem_alloc(kernel_map, (vm_offset_t *)&nblhdr, tr->tbuffer_size)) {
2705 && (tr->total_bytes <= ((tr->tbuffer_size*tr->num_blhdrs) - tr->tbuffer_size/8))) {
2994 kmem_free(kernel_map, (vm_offset_t)blhdr, tr->tbuffer_size);
3066 kmem_free(kernel_map, (vm_offset_t)blhdr, tr->tbuffer_size);
3204 * optionally provide a new tbuffer_size; passing zero defaults to not
3239 * tbuffer_size The new desired transaction buffer size. Pass zero to keep
3256 int journal_relocate(journal *jnl, off_t offset, off_t journal_size, int32_t tbuffer_size,
3287 if (tbuffer_size == 0)
3288 tbuffer_size = jnl->tbuffer_size;
3289 size_up_tbuffer(jnl, tbuffer_size, jnl->jhdr->jhdr_size);