Home
last modified time | relevance | path

Searched refs:node_blk (Results 1 – 9 of 9) sorted by relevance

/external/f2fs-tools/fsck/
Ddump.c254 struct f2fs_node *node_blk; in dump_node_blk() local
279 node_blk = calloc(BLOCK_SZ, 1); in dump_node_blk()
280 ASSERT(node_blk); in dump_node_blk()
282 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk()
288 le32_to_cpu(node_blk->dn.addr[i])); in dump_node_blk()
292 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk()
296 le32_to_cpu(node_blk->in.nid[i]), ofs); in dump_node_blk()
300 free(node_blk); in dump_node_blk()
304 static void dump_xattr(struct f2fs_sb_info *sbi, struct f2fs_node *node_blk) in dump_xattr() argument
311 xattr = read_all_xattrs(sbi, node_blk); in dump_xattr()
[all …]
Ddir.c37 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()
[all …]
Dfsck.c222 struct f2fs_node *node_blk = NULL; in is_valid_summary() local
227 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in is_valid_summary()
228 ASSERT(node_blk != NULL); in is_valid_summary()
239 ret = dev_read_block(node_blk, ni.blk_addr); in is_valid_summary()
242 if (le32_to_cpu(node_blk->footer.nid) != nid) in is_valid_summary()
246 if (node_blk->footer.nid == node_blk->footer.ino) { in is_valid_summary()
247 int ofs = get_extra_isize(node_blk); in is_valid_summary()
249 target_blk_addr = node_blk->i.i_addr[ofs + ofs_in_node]; in is_valid_summary()
251 target_blk_addr = node_blk->dn.addr[ofs_in_node]; in is_valid_summary()
257 free(node_blk); in is_valid_summary()
[all …]
Dnode.c43 struct f2fs_node *node_blk = dn->node_blk; in set_data_blkaddr() local
46 addr_array = blkaddr_in_node(node_blk); in set_data_blkaddr()
48 if (dn->node_blk != dn->inode_blk) in set_data_blkaddr()
62 struct f2fs_node *node_blk; in new_node_block() local
71 node_blk = calloc(BLOCK_SZ, 1); in new_node_block()
72 ASSERT(node_blk); in new_node_block()
74 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block()
75 node_blk->footer.ino = f2fs_inode->footer.ino; in new_node_block()
76 node_blk->footer.flag = cpu_to_le32(ofs << OFFSET_BIT_SHIFT); in new_node_block()
77 node_blk->footer.cp_ver = ckpt->checkpoint_ver; in new_node_block()
[all …]
Dsegment.c69 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block()
77 ASSERT(dn->node_blk); in new_data_block()
136 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_read()
137 NULL : dn.node_blk; in f2fs_read()
138 remained_blkentries = ADDRS_PER_PAGE(dn.node_blk); in f2fs_read()
142 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read()
214 index_node = (dn.node_blk == dn.inode_blk) ? in f2fs_write()
215 NULL : dn.node_blk; in f2fs_write()
216 remained_blkentries = ADDRS_PER_PAGE(dn.node_blk); in f2fs_write()
220 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_write()
[all …]
Df2fs.h153 struct f2fs_node *node_blk; /* cached direct node page */ member
230 static inline void *inline_data_addr(struct f2fs_node *node_blk) in inline_data_addr() argument
232 int ofs = get_extra_isize(node_blk) + DEF_INLINE_RESERVED_SIZE; in inline_data_addr()
234 return (void *)&(node_blk->i.i_addr[ofs]); in inline_data_addr()
237 static inline unsigned int ofs_of_node(struct f2fs_node *node_blk) in ofs_of_node() argument
239 unsigned flag = le32_to_cpu(node_blk->footer.flag); in ofs_of_node()
Dmount.c1455 struct f2fs_node *node_blk; in restore_node_summary() local
1461 node_blk = malloc(F2FS_BLKSIZE); in restore_node_summary()
1462 ASSERT(node_blk); in restore_node_summary()
1469 ret = dev_read_block(node_blk, addr); in restore_node_summary()
1471 sum_entry->nid = node_blk->footer.nid; in restore_node_summary()
1474 free(node_blk); in restore_node_summary()
1797 struct f2fs_node *node_blk = NULL; in update_data_blkaddr() local
1802 node_blk = (struct f2fs_node *)calloc(BLOCK_SZ, 1); in update_data_blkaddr()
1803 ASSERT(node_blk); in update_data_blkaddr()
1808 ret = dev_read_block(node_blk, ni.blk_addr); in update_data_blkaddr()
[all …]
Dxattr.c91 ASSERT(dn.node_blk); in write_all_xattrs()
92 xattr_node = dn.node_blk; in write_all_xattrs()
Dnode.h76 dn->node_blk = nblk; in set_new_dnode()