Searched refs:node_blk (Results 1 – 9 of 9) sorted by relevance
/third_party/f2fs-tools/fsck/ |
D | dump.c | 298 struct f2fs_node *node_blk; in dump_node_blk() local 323 node_blk = calloc(BLOCK_SZ, 1); in dump_node_blk() 324 ASSERT(node_blk); in dump_node_blk() 326 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk() 332 le32_to_cpu(node_blk->dn.addr[i])); in dump_node_blk() 337 le32_to_cpu(node_blk->in.nid[i]), in dump_node_blk() 343 le32_to_cpu(node_blk->in.nid[i]), in dump_node_blk() 349 free(node_blk); in dump_node_blk() 353 static void dump_xattr(struct f2fs_sb_info *sbi, struct f2fs_node *node_blk) in dump_xattr() argument 360 xattr = read_all_xattrs(sbi, node_blk); in dump_xattr() [all …]
|
D | node.h | 27 struct f2fs_node *node_blk, struct f2fs_node *inode_blk) in ADDRS_PER_PAGE() argument 29 nid_t ino = le32_to_cpu(node_blk->footer.ino); in ADDRS_PER_PAGE() 32 if (IS_INODE(node_blk)) in ADDRS_PER_PAGE() 33 return ADDRS_PER_INODE(&node_blk->i); in ADDRS_PER_PAGE() 98 dn->node_blk = nblk; in set_new_dnode() 128 static inline nid_t ino_of_node(struct f2fs_node *node_blk) in ino_of_node() argument 130 return le32_to_cpu(node_blk->footer.ino); in ino_of_node() 133 static inline __u64 cpver_of_node(struct f2fs_node *node_blk) in cpver_of_node() argument 135 return le64_to_cpu(node_blk->footer.cp_ver); in cpver_of_node() 139 struct f2fs_node *node_blk) in is_recoverable_dnode() argument [all …]
|
D | fsck.c | 226 struct f2fs_node *node_blk = NULL; in is_valid_summary() local 231 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in is_valid_summary() 232 ASSERT(node_blk != NULL); in is_valid_summary() 243 ret = dev_read_block(node_blk, ni.blk_addr); in is_valid_summary() 246 if (le32_to_cpu(node_blk->footer.nid) != nid) in is_valid_summary() 250 if (node_blk->footer.nid == node_blk->footer.ino) { in is_valid_summary() 251 int ofs = get_extra_isize(node_blk); in is_valid_summary() 255 target_blk_addr = node_blk->i.i_addr[ofs + ofs_in_node]; in is_valid_summary() 259 target_blk_addr = node_blk->dn.addr[ofs_in_node]; in is_valid_summary() 265 free(node_blk); in is_valid_summary() [all …]
|
D | dir.c | 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() [all …]
|
D | segment.c | 110 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block() 117 ASSERT(dn->node_blk); in new_data_block() 201 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_read() 202 NULL : dn.node_blk; in f2fs_read() 204 dn.node_blk, dn.inode_blk); in f2fs_read() 208 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read() 298 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_write_ex() 299 NULL : dn.node_blk; in f2fs_write_ex() 301 dn.node_blk, dn.inode_blk) - in f2fs_write_ex() 311 ASSERT(dev_write_block(dn.node_blk, in f2fs_write_ex() [all …]
|
D | node.c | 93 struct f2fs_node *node_blk = dn->node_blk; in set_data_blkaddr() local 96 addr_array = blkaddr_in_node(node_blk); in set_data_blkaddr() 98 if (dn->node_blk != dn->inode_blk) in set_data_blkaddr() 113 struct f2fs_node *node_blk; in new_node_block() local 123 node_blk = calloc(BLOCK_SZ, 1); in new_node_block() 124 ASSERT(node_blk); in new_node_block() 126 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block() 127 node_blk->footer.ino = f2fs_inode->footer.ino; in new_node_block() 128 node_blk->footer.flag = cpu_to_le32(ofs << OFFSET_BIT_SHIFT); in new_node_block() 129 node_blk->footer.cp_ver = ckpt->checkpoint_ver; in new_node_block() [all …]
|
D | xattr.c | 28 struct f2fs_node *node_blk = NULL; in read_all_xattrs() local 32 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in read_all_xattrs() 33 ASSERT(node_blk != NULL); in read_all_xattrs() 35 ret = fsck_sanity_check_nid(sbi, xnid, node_blk, in read_all_xattrs() 37 free(node_blk); in read_all_xattrs() 107 ASSERT(dn.node_blk); in write_all_xattrs() 108 xattr_node = dn.node_blk; in write_all_xattrs()
|
D | mount.c | 1871 struct f2fs_node *node_blk; in restore_node_summary() local 1877 node_blk = malloc(F2FS_BLKSIZE); in restore_node_summary() 1878 ASSERT(node_blk); in restore_node_summary() 1885 ret = dev_read_block(node_blk, addr); in restore_node_summary() 1887 sum_entry->nid = node_blk->footer.nid; in restore_node_summary() 1890 free(node_blk); in restore_node_summary() 2251 struct f2fs_node *node_blk = NULL; in update_data_blkaddr() local 2256 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in update_data_blkaddr() 2257 ASSERT(node_blk); in update_data_blkaddr() 2262 ret = dev_read_block(node_blk, ni.blk_addr); in update_data_blkaddr() [all …]
|
D | f2fs.h | 234 struct f2fs_node *node_blk; /* cached direct node page */ member 325 static inline void *inline_data_addr(struct f2fs_node *node_blk) in inline_data_addr() argument 327 int ofs = get_extra_isize(node_blk) + DEF_INLINE_RESERVED_SIZE; in inline_data_addr() 329 return (void *)&(node_blk->i.i_addr[ofs]); in inline_data_addr() 332 static inline unsigned int ofs_of_node(struct f2fs_node *node_blk) in ofs_of_node() argument 334 unsigned flag = le32_to_cpu(node_blk->footer.flag); in ofs_of_node()
|