Lines Matching refs:wd
641 struct write_dir_struct *wd = (struct write_dir_struct *) priv_data; in write_dir_block() local
647 if (blockcnt >= wd->outdir->num) { in write_dir_block()
648 e2fsck_read_bitmaps(wd->ctx); in write_dir_block()
650 ext2fs_unmark_block_bitmap(wd->ctx->block_found_map, blk); in write_dir_block()
653 wd->cleared++; in write_dir_block()
659 dir = wd->outdir->buf + (blockcnt * fs->blocksize); in write_dir_block()
660 wd->err = ext2fs_write_dir_block(fs, *block_nr, dir); in write_dir_block()
661 if (wd->err) in write_dir_block()
670 struct write_dir_struct wd; in write_directory() local
678 wd.outdir = outdir; in write_directory()
679 wd.err = 0; in write_directory()
680 wd.ctx = ctx; in write_directory()
681 wd.cleared = 0; in write_directory()
684 write_dir_block, &wd); in write_directory()
687 if (wd.err) in write_directory()
688 return wd.err; in write_directory()
696 ext2fs_iblk_sub_blocks(fs, &inode, wd.cleared); in write_directory()