Lines Matching refs:dirbuf
525 static int recurse_dir(int fd, struct ext4_inode *inode, char *dirbuf, int dirsize, int mode) in recurse_dir() argument
577 read_block(fd, block_list[i], dirbuf + (i * info.block_size)); in recurse_dir()
580 dirp = (struct ext4_dir_entry_2 *)dirbuf; in recurse_dir()
581 while (dirp < (struct ext4_dir_entry_2 *)(dirbuf + dirsize)) { in recurse_dir()
583 leftover_space = (char *)(dirbuf + dirsize) - (char *)dirp; in recurse_dir()
674 write_block(fd, block_list[i], dirbuf + (i * info.block_size)); in recurse_dir()
696 char *dirbuf; in ext4fixup_internal() local
764 dirbuf = malloc(dirsize); in ext4fixup_internal()
765 if (dirbuf == 0) { in ext4fixup_internal()
782 recurse_dir(fd, &root_inode, dirbuf, dirsize, SANITY_CHECK_PASS); in ext4fixup_internal()
792 if (!recurse_dir(fd, &root_inode, dirbuf, dirsize, MARK_INODE_NUMS)) { in ext4fixup_internal()
799 if (!recurse_dir(fd, &root_inode, dirbuf, dirsize, UPDATE_INODE_NUMS)) { in ext4fixup_internal()
814 free(dirbuf); in ext4fixup_internal()