Lines Matching refs:node_blk
37 void make_dentry_ptr(struct f2fs_dentry_ptr *d, struct f2fs_node *node_blk, in make_dentry_ptr() argument
48 int entry_cnt = NR_INLINE_DENTRY(node_blk); in make_dentry_ptr()
49 int bitmap_size = INLINE_DENTRY_BITMAP_SIZE(node_blk); in make_dentry_ptr()
50 int reserved_size = INLINE_RESERVED_SIZE(node_blk); in make_dentry_ptr()
138 if (dn.node_blk && dn.node_blk != dn.inode_blk) in find_in_level()
139 free(dn.node_blk); in find_in_level()
158 if (dn.node_blk && dn.node_blk != dn.inode_blk) in find_in_level()
159 free(dn.node_blk); in find_in_level()
265 if (dn.node_blk && dn.node_blk != dn.inode_blk) in f2fs_add_link()
266 free(dn.node_blk); in f2fs_add_link()
316 ret = dev_write_block(dn.node_blk, dn.node_blkaddr); in f2fs_add_link()
326 if (dn.node_blk != dn.inode_blk) in f2fs_add_link()
327 free(dn.node_blk); in f2fs_add_link()
408 struct f2fs_node *node_blk, struct dentry *de) in init_inode_block() argument
428 if (size + 1 > MAX_INLINE_DATA(node_blk)) in init_inode_block()
434 node_blk->i.i_mode = cpu_to_le16(mode); in init_inode_block()
435 node_blk->i.i_advise = 0; in init_inode_block()
436 node_blk->i.i_uid = cpu_to_le32(de->uid); in init_inode_block()
437 node_blk->i.i_gid = cpu_to_le32(de->gid); in init_inode_block()
438 node_blk->i.i_links = cpu_to_le32(links); in init_inode_block()
439 node_blk->i.i_size = cpu_to_le32(size); in init_inode_block()
440 node_blk->i.i_blocks = cpu_to_le32(blocks); in init_inode_block()
441 node_blk->i.i_atime = cpu_to_le64(de->mtime); in init_inode_block()
442 node_blk->i.i_ctime = cpu_to_le64(de->mtime); in init_inode_block()
443 node_blk->i.i_mtime = cpu_to_le64(de->mtime); in init_inode_block()
444 node_blk->i.i_atime_nsec = 0; in init_inode_block()
445 node_blk->i.i_ctime_nsec = 0; in init_inode_block()
446 node_blk->i.i_mtime_nsec = 0; in init_inode_block()
447 node_blk->i.i_generation = 0; in init_inode_block()
449 node_blk->i.i_current_depth = cpu_to_le32(1); in init_inode_block()
451 node_blk->i.i_current_depth = cpu_to_le32(0); in init_inode_block()
452 node_blk->i.i_xattr_nid = 0; in init_inode_block()
453 node_blk->i.i_flags = 0; in init_inode_block()
454 node_blk->i.i_inline = F2FS_INLINE_XATTR; in init_inode_block()
455 node_blk->i.i_pino = cpu_to_le32(de->pino); in init_inode_block()
456 node_blk->i.i_namelen = cpu_to_le32(de->len); in init_inode_block()
457 memcpy(node_blk->i.i_name, de->name, de->len); in init_inode_block()
458 node_blk->i.i_name[de->len] = 0; in init_inode_block()
461 node_blk->i.i_inline |= F2FS_EXTRA_ATTR; in init_inode_block()
462 node_blk->i.i_extra_isize = in init_inode_block()
466 node_blk->footer.ino = cpu_to_le32(de->ino); in init_inode_block()
467 node_blk->footer.nid = cpu_to_le32(de->ino); in init_inode_block()
468 node_blk->footer.flag = 0; in init_inode_block()
469 node_blk->footer.cp_ver = ckpt->checkpoint_ver; in init_inode_block()
472 make_empty_dir(sbi, node_blk); in init_inode_block()
474 page_symlink(sbi, node_blk, de->link, size); in init_inode_block()
477 node_blk->i.i_inode_checksum = in init_inode_block()
478 cpu_to_le32(f2fs_inode_chksum(node_blk)); in init_inode_block()