• Home
  • Raw
  • Download

Lines Matching refs:node_blk

38 void make_dentry_ptr(struct f2fs_dentry_ptr *d, struct f2fs_node *node_blk,  in make_dentry_ptr()  argument
49 int entry_cnt = NR_INLINE_DENTRY(node_blk); in make_dentry_ptr()
50 int bitmap_size = INLINE_DENTRY_BITMAP_SIZE(node_blk); in make_dentry_ptr()
51 int reserved_size = INLINE_RESERVED_SIZE(node_blk); in make_dentry_ptr()
140 if (dn.node_blk && dn.node_blk != dn.inode_blk) in find_in_level()
141 free(dn.node_blk); in find_in_level()
160 if (dn.node_blk && dn.node_blk != dn.inode_blk) in find_in_level()
161 free(dn.node_blk); in find_in_level()
269 if (dn.node_blk && dn.node_blk != dn.inode_blk) in f2fs_add_link()
270 free(dn.node_blk); in f2fs_add_link()
320 ret = dev_write_block(dn.node_blk, dn.node_blkaddr); in f2fs_add_link()
330 if (dn.node_blk != dn.inode_blk) in f2fs_add_link()
331 free(dn.node_blk); in f2fs_add_link()
438 struct f2fs_node *node_blk, in set_file_temperature() argument
457 node_blk->i.i_advise |= FADVISE_COLD_BIT; in set_file_temperature()
459 node_blk->i.i_advise |= FADVISE_HOT_BIT; in set_file_temperature()
463 struct f2fs_node *node_blk, struct dentry *de) in init_inode_block() argument
491 if (size + 1 > MAX_INLINE_DATA(node_blk)) in init_inode_block()
497 node_blk->i.i_mode = cpu_to_le16(mode); in init_inode_block()
498 node_blk->i.i_advise = 0; in init_inode_block()
499 node_blk->i.i_uid = cpu_to_le32(de->uid); in init_inode_block()
500 node_blk->i.i_gid = cpu_to_le32(de->gid); in init_inode_block()
501 node_blk->i.i_links = cpu_to_le32(links); in init_inode_block()
502 node_blk->i.i_size = cpu_to_le32(size); in init_inode_block()
503 node_blk->i.i_blocks = cpu_to_le32(blocks); in init_inode_block()
504 node_blk->i.i_atime = cpu_to_le64(de->mtime); in init_inode_block()
505 node_blk->i.i_ctime = cpu_to_le64(de->mtime); in init_inode_block()
506 node_blk->i.i_mtime = cpu_to_le64(de->mtime); in init_inode_block()
507 node_blk->i.i_atime_nsec = 0; in init_inode_block()
508 node_blk->i.i_ctime_nsec = 0; in init_inode_block()
509 node_blk->i.i_mtime_nsec = 0; in init_inode_block()
510 node_blk->i.i_generation = 0; in init_inode_block()
512 node_blk->i.i_current_depth = cpu_to_le32(1); in init_inode_block()
514 node_blk->i.i_current_depth = cpu_to_le32(0); in init_inode_block()
515 node_blk->i.i_xattr_nid = 0; in init_inode_block()
516 node_blk->i.i_flags = 0; in init_inode_block()
517 node_blk->i.i_inline = F2FS_INLINE_XATTR; in init_inode_block()
518 node_blk->i.i_pino = cpu_to_le32(de->pino); in init_inode_block()
519 node_blk->i.i_namelen = cpu_to_le32(de->len); in init_inode_block()
520 memcpy(node_blk->i.i_name, de->name, de->len); in init_inode_block()
521 node_blk->i.i_name[de->len] = 0; in init_inode_block()
524 node_blk->i.i_inline |= F2FS_EXTRA_ATTR; in init_inode_block()
525 node_blk->i.i_extra_isize = cpu_to_le16(calc_extra_isize()); in init_inode_block()
528 set_file_temperature(sbi, node_blk, de->name); in init_inode_block()
530 node_blk->footer.ino = cpu_to_le32(de->ino); in init_inode_block()
531 node_blk->footer.nid = cpu_to_le32(de->ino); in init_inode_block()
532 node_blk->footer.flag = 0; in init_inode_block()
533 node_blk->footer.cp_ver = ckpt->checkpoint_ver; in init_inode_block()
534 set_cold_node(node_blk, S_ISDIR(mode)); in init_inode_block()
537 make_empty_dir(sbi, node_blk); in init_inode_block()
539 page_symlink(sbi, node_blk, de->link, size); in init_inode_block()
546 node_blk->i.i_inode_checksum = in init_inode_block()
547 cpu_to_le32(f2fs_inode_chksum(node_blk)); in init_inode_block()