• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/fs/ext2fs/

Lines Matching defs:blksize

66 static void	ext2_append_entry(char *block, uint32_t blksize,
70 struct componentname *cnp, uint32_t blksize);
95 char *block1, char *block2, uint32_t blksize,
423 struct componentname *cnp, uint32_t blksize)
431 cursize = roundup(dp->i_size, blksize);
432 newsize = cursize + blksize;
435 auio.uio_resid = blksize;
436 aiov.iov_len = blksize;
519 ext2_append_entry(char *block, uint32_t blksize,
528 new_entry->e2d_reclen = htole16(block + blksize - (char *)last_entry -
538 uint32_t blksize, uint32_t *hash_seed, uint8_t hash_version,
556 ((char *)block2 + blksize);
570 while ((char *)ep < block1 + blksize - csum_size) {
595 if (le16toh(sort_info[i].h_size) + size > blksize / 2)
627 for (offset = 0; offset < blksize - csum_size; ) {
641 ext2_append_entry(block2, blksize,
645 last->e2d_reclen = htole16(block1 + blksize - (char *)last -
649 ext2_append_entry(block1, blksize, last, entry, csum_size);
653 htole16(block2 + blksize - dest - csum_size);
657 ext2_init_dirent_tail(EXT2_DIRENT_TAIL(block1, blksize));
658 ext2_init_dirent_tail(EXT2_DIRENT_TAIL(block2, blksize));
678 uint32_t blksize, dirlen, split_hash;
688 blksize = m_fs->e2fs_bsize;
690 buf1 = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
691 buf2 = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
700 dirlen = (char *)root + blksize - (char *)ep;
706 ep->e2d_reclen = htole16(buf1 + blksize - (char *)ep);
713 dotdot->e2d_reclen = htole16(blksize - EXT2_DIR_REC_LEN(1));
731 ext2_htree_split_dirblock(dp, buf1, buf2, blksize, hash_seed,
753 error = ext2_htree_append_block(vp, buf1, cnp, blksize);
761 error = ext2_htree_append_block(vp, buf2, cnp, blksize);
790 uint32_t blksize, blknum;
805 blksize = m_fs->e2fs_bsize;
822 newidxblock = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
826 dst_node->h_fake_dirent.e2d_reclen = htole16(blksize);
828 cursize = roundup(ip->i_size, blksize);
829 dirsize = cursize + blksize;
830 blknum = dirsize / blksize - 1;
833 cnp, blksize);
915 error = ext2_blkatoff(dvp, blknum * blksize, NULL, &bp);
920 newdirblock = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
922 ext2_htree_split_dirblock(ip, (char *)bp->b_data, newdirblock, blksize,
924 cursize = roundup(ip->i_size, blksize);
925 dirsize = cursize + blksize;
926 blknum = dirsize / blksize - 1;
933 error = ext2_htree_append_block(dvp, newdirblock, cnp, blksize);