Lines Matching refs:dent_blk
338 struct f2fs_dentry_block *dent_blk; in make_empty_dir() local
348 dent_blk = calloc(BLOCK_SZ, 1); in make_empty_dir()
349 ASSERT(dent_blk); in make_empty_dir()
351 dent_blk->dentry[0].hash_code = 0; in make_empty_dir()
352 dent_blk->dentry[0].ino = cpu_to_le32(ino); in make_empty_dir()
353 dent_blk->dentry[0].name_len = cpu_to_le16(1); in make_empty_dir()
354 dent_blk->dentry[0].file_type = F2FS_FT_DIR; in make_empty_dir()
355 memcpy(dent_blk->filename[0], ".", 1); in make_empty_dir()
357 dent_blk->dentry[1].hash_code = 0; in make_empty_dir()
358 dent_blk->dentry[1].ino = cpu_to_le32(pino); in make_empty_dir()
359 dent_blk->dentry[1].name_len = cpu_to_le16(2); in make_empty_dir()
360 dent_blk->dentry[1].file_type = F2FS_FT_DIR; in make_empty_dir()
361 memcpy(dent_blk->filename[1], "..", 2); in make_empty_dir()
363 test_and_set_bit_le(0, dent_blk->dentry_bitmap); in make_empty_dir()
364 test_and_set_bit_le(1, dent_blk->dentry_bitmap); in make_empty_dir()
370 ret = dev_write_block(dent_blk, blkaddr); in make_empty_dir()
374 free(dent_blk); in make_empty_dir()