Lines Matching refs:blhdr_size
643 jnl->jhdr->blhdr_size = SWAP32(jnl->jhdr->blhdr_size);
660 if (blhdr->num_blocks >= ((jnl->jhdr->blhdr_size / sizeof(block_info)) - 1)) {
661 printf("jnl: %s: blhdr num blocks looks suspicious (%d / blhdr size %d). not swapping.\n", jnl->jdev_name, blhdr->num_blocks, jnl->jhdr->blhdr_size);
1029 if (kmem_alloc(kernel_map, (vm_offset_t *)&buff, jnl->jhdr->blhdr_size)) {
1031 jnl->jdev_name, jnl->jhdr->blhdr_size);
1055 ret = read_journal_data(jnl, &offset, buff, jnl->jhdr->blhdr_size);
1056 if (ret != (size_t)jnl->jhdr->blhdr_size) {
1349 kmem_free(kernel_map, (vm_offset_t)buff, jnl->jhdr->blhdr_size);
1359 kmem_free(kernel_map, (vm_offset_t)buff, jnl->jhdr->blhdr_size);
1403 if (tbuffer_size < jnl->jhdr->blhdr_size * 2) {
1404 tbuffer_size = jnl->jhdr->blhdr_size * 2;
1422 jnl->jhdr->blhdr_size = (jnl->tbuffer_size / jnl->jhdr->jhdr_size) * sizeof(block_info);
1423 if (jnl->jhdr->blhdr_size < phys_blksz) {
1424 jnl->jhdr->blhdr_size = phys_blksz;
1425 } else if ((jnl->jhdr->blhdr_size % phys_blksz) != 0) {
1427 jnl->jhdr->blhdr_size = (jnl->jhdr->blhdr_size + (phys_blksz - 1)) & ~(phys_blksz - 1);
2025 printf(" blhdr size: %d\n", jnl->jhdr->blhdr_size);
2182 memset(tr->tbuffer + BLHDR_CHECKSUM_SIZE, 0x5a, jnl->jhdr->blhdr_size - BLHDR_CHECKSUM_SIZE);
2185 tr->blhdr->max_blocks = (jnl->jhdr->blhdr_size / sizeof(block_info)) - 1;
2187 tr->blhdr->bytes_used = jnl->jhdr->blhdr_size;
2192 tr->total_bytes = jnl->jhdr->blhdr_size;
2435 tbuffer_offset = jnl->jhdr->blhdr_size;
2480 memset(nblhdr + BLHDR_CHECKSUM_SIZE, 0x5a, jnl->jhdr->blhdr_size - BLHDR_CHECKSUM_SIZE);
2483 nblhdr->max_blocks = (jnl->jhdr->blhdr_size / sizeof(block_info)) - 1;
2485 nblhdr->bytes_used = jnl->jhdr->blhdr_size;
2489 tr->total_bytes += jnl->jhdr->blhdr_size;
2496 tbuffer_offset = jnl->jhdr->blhdr_size;
2691 if (tr->total_bytes == jnl->jhdr->blhdr_size) {
2765 tbuffer_offset = jnl->jhdr->blhdr_size;
2872 tbuffer_offset = jnl->jhdr->blhdr_size;
2933 tr->num_flushed = tr->num_blhdrs * jnl->jhdr->blhdr_size;