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()
139 if (dn.node_blk && dn.node_blk != dn.inode_blk) in find_in_level()
140 free(dn.node_blk); in find_in_level()
159 if (dn.node_blk && dn.node_blk != dn.inode_blk) in find_in_level()
160 free(dn.node_blk); in find_in_level()
268 if (dn.node_blk && dn.node_blk != dn.inode_blk) in f2fs_add_link()
269 free(dn.node_blk); in f2fs_add_link()
319 ret = dev_write_block(dn.node_blk, dn.node_blkaddr); in f2fs_add_link()
329 if (dn.node_blk != dn.inode_blk) in f2fs_add_link()
330 free(dn.node_blk); in f2fs_add_link()
437 struct f2fs_node *node_blk, in set_file_temperature() argument
456 node_blk->i.i_advise |= FADVISE_COLD_BIT; in set_file_temperature()
458 node_blk->i.i_advise |= FADVISE_HOT_BIT; in set_file_temperature()
462 struct f2fs_node *node_blk, struct dentry *de) in init_inode_block() argument
482 if (size + 1 > MAX_INLINE_DATA(node_blk)) in init_inode_block()
488 node_blk->i.i_mode = cpu_to_le16(mode); in init_inode_block()
489 node_blk->i.i_advise = 0; in init_inode_block()
490 node_blk->i.i_uid = cpu_to_le32(de->uid); in init_inode_block()
491 node_blk->i.i_gid = cpu_to_le32(de->gid); in init_inode_block()
492 node_blk->i.i_links = cpu_to_le32(links); in init_inode_block()
493 node_blk->i.i_size = cpu_to_le32(size); in init_inode_block()
494 node_blk->i.i_blocks = cpu_to_le32(blocks); in init_inode_block()
495 node_blk->i.i_atime = cpu_to_le64(de->mtime); in init_inode_block()
496 node_blk->i.i_ctime = cpu_to_le64(de->mtime); in init_inode_block()
497 node_blk->i.i_mtime = cpu_to_le64(de->mtime); in init_inode_block()
498 node_blk->i.i_atime_nsec = 0; in init_inode_block()
499 node_blk->i.i_ctime_nsec = 0; in init_inode_block()
500 node_blk->i.i_mtime_nsec = 0; in init_inode_block()
501 node_blk->i.i_generation = 0; in init_inode_block()
503 node_blk->i.i_current_depth = cpu_to_le32(1); in init_inode_block()
505 node_blk->i.i_current_depth = cpu_to_le32(0); in init_inode_block()
506 node_blk->i.i_xattr_nid = 0; in init_inode_block()
507 node_blk->i.i_flags = 0; in init_inode_block()
508 node_blk->i.i_inline = F2FS_INLINE_XATTR; in init_inode_block()
509 node_blk->i.i_pino = cpu_to_le32(de->pino); in init_inode_block()
510 node_blk->i.i_namelen = cpu_to_le32(de->len); in init_inode_block()
511 memcpy(node_blk->i.i_name, de->name, de->len); in init_inode_block()
512 node_blk->i.i_name[de->len] = 0; in init_inode_block()
515 node_blk->i.i_inline |= F2FS_EXTRA_ATTR; in init_inode_block()
516 node_blk->i.i_extra_isize = cpu_to_le16(calc_extra_isize()); in init_inode_block()
519 set_file_temperature(sbi, node_blk, de->name); in init_inode_block()
521 node_blk->footer.ino = cpu_to_le32(de->ino); in init_inode_block()
522 node_blk->footer.nid = cpu_to_le32(de->ino); in init_inode_block()
523 node_blk->footer.flag = 0; in init_inode_block()
524 node_blk->footer.cp_ver = ckpt->checkpoint_ver; in init_inode_block()
525 set_cold_node(node_blk, S_ISDIR(mode)); in init_inode_block()
528 make_empty_dir(sbi, node_blk); in init_inode_block()
530 page_symlink(sbi, node_blk, de->link, size); in init_inode_block()
537 node_blk->i.i_inode_checksum = in init_inode_block()
538 cpu_to_le32(f2fs_inode_chksum(node_blk)); in init_inode_block()