Home
last modified time | relevance | path

Searched refs:blk_addr (Results 1 – 14 of 14) sorted by relevance

/external/f2fs-tools/fsck/
Ddump.c76 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
78 if (ni.blk_addr != 0x0) { in nat_dump()
86 ni.blk_addr, pack); in nat_dump()
93 if (ni.blk_addr == 0) in nat_dump()
96 ret = dev_read_block(node_block, ni.blk_addr); in nat_dump()
105 ni.blk_addr, pack); in nat_dump()
292 dev_read_block(node_blk, ni.blk_addr); in dump_node_blk()
406 dev_read_block(node_blk, ni.blk_addr); in dump_node()
409 DBG(1, "nat_entry.block_addr [0x%x]\n", ni.blk_addr); in dump_node()
413 if (ni.blk_addr == 0x0) in dump_node()
[all …]
Dfsck.c128 u32 blk_addr) in is_valid_ssa_node_blk() argument
137 segno = GET_SEGNO(sbi, blk_addr); in is_valid_ssa_node_blk()
138 offset = OFFSET_IN_SEG(sbi, blk_addr); in is_valid_ssa_node_blk()
166 DBG(0, "target blk_addr [0x%x]\n", blk_addr); in is_valid_ssa_node_blk()
169 GET_SEGNO(sbi, blk_addr))); in is_valid_ssa_node_blk()
171 GET_SEGNO(sbi, blk_addr), in is_valid_ssa_node_blk()
172 OFFSET_IN_SEG(sbi, blk_addr)); in is_valid_ssa_node_blk()
180 segno, nid, blk_addr); in is_valid_ssa_node_blk()
201 u32 blk_addr) in is_valid_summary() argument
218 if (!IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) in is_valid_summary()
[all …]
Df2fs.h46 u32 blk_addr; member
313 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ argument
314 ((blk_addr) - SM_I(sbi)->seg0_blkaddr)
316 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
317 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> sbi->log_blocks_per_seg)
319 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
320 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (sbi->blocks_per_seg - 1))
402 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) in BLKOFF_FROM_MAIN() argument
404 ASSERT(blk_addr >= SM_I(sbi)->main_blkaddr); in BLKOFF_FROM_MAIN()
405 return blk_addr - SM_I(sbi)->main_blkaddr; in BLKOFF_FROM_MAIN()
[all …]
Dxattr.c41 ret = dev_read_block(txattr_addr + inline_size, ni.blk_addr); in read_all_xattrs()
101 blkaddr = ni.blk_addr; in write_all_xattrs()
104 ret = dev_read_block(xattr_node, ni.blk_addr); in write_all_xattrs()
150 ret = dev_read_block(inode, ni.blk_addr); in f2fs_setxattr()
227 ret = dev_write_block(inode, ni.blk_addr); in f2fs_setxattr()
Dmount.c87 le32_to_cpu(inode->i_ext.blk_addr), in print_inode_info()
1040 block_t blk_addr = 0; in read_normal_summaries() local
1046 blk_addr = sum_blk_addr(sbi, NR_CURSEG_TYPE, type); in read_normal_summaries()
1048 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); in read_normal_summaries()
1052 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, in read_normal_summaries()
1055 blk_addr = GET_SUM_BLKADDR(sbi, segno); in read_normal_summaries()
1059 ret = dev_read_block(sum_blk, blk_addr); in read_normal_summaries()
1071 void update_sum_entry(struct f2fs_sb_info *sbi, block_t blk_addr, in update_sum_entry() argument
1079 segno = GET_SEGNO(sbi, blk_addr); in update_sum_entry()
1080 offset = OFFSET_IN_SEG(sbi, blk_addr); in update_sum_entry()
[all …]
Dsegment.c80 ret = dev_read_block(inode, ni.blk_addr); in f2fs_write_block()
156 ret = dev_write_block(inode, ni.blk_addr); in f2fs_write_block()
192 ret = dev_read_block(node_blk, ni.blk_addr); in f2fs_build_file()
203 ret = dev_write_block(node_blk, ni.blk_addr); in f2fs_build_file()
Dresize.c366 block_t blk_addr = 0; in migrate_sit() local
390 blk_addr = get_newsb(sit_blkaddr) + pre_ofs; in migrate_sit()
391 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
393 DBG(1, "Write valid sit: %x\n", blk_addr); in migrate_sit()
404 blk_addr = get_newsb(sit_blkaddr) + ofs; in migrate_sit()
405 ret = dev_write_block(sit_blk, blk_addr); in migrate_sit()
406 DBG(1, "Write valid sit: %x\n", blk_addr); in migrate_sit()
Dmain.c201 .blk_addr = -1, in f2fs_parse_options()
244 &dump_opt.blk_addr); in f2fs_parse_options()
247 &dump_opt.blk_addr); in f2fs_parse_options()
474 if (opt->blk_addr != -1) in do_dump()
475 dump_info_from_blkaddr(sbi, opt->blk_addr); in do_dump()
Dnode.c204 nblk[0] = ni.blk_addr; in get_dnode_of_data()
226 ret = dev_read_block(dn->node_blk, ni.blk_addr); in get_dnode_of_data()
229 nblk[i] = ni.blk_addr; in get_dnode_of_data()
Ddir.c545 if (ni.blk_addr == NULL_ADDR) { in f2fs_create()
553 ret = dev_read_block(parent, ni.blk_addr); in f2fs_create()
557 ret = convert_inline_dentry(sbi, parent, ni.blk_addr); in f2fs_create()
583 ni.blk_addr, 1); in f2fs_create()
643 if (ni.blk_addr == NULL_ADDR) { in f2fs_find_path()
647 ret = dev_read_block(parent, ni.blk_addr); in f2fs_find_path()
Dfsck.h195 int32_t blk_addr; member
/external/f2fs-tools/lib/
Dlibf2fs_io.c43 __u64 blk_addr = *offset >> F2FS_BLKSIZE_BITS; in __get_device_fd() local
47 if (c.devices[i].start_blkaddr <= blk_addr && in __get_device_fd()
48 c.devices[i].end_blkaddr >= blk_addr) { in __get_device_fd()
146 int dev_write_block(void *buf, __u64 blk_addr) in dev_write_block() argument
148 return dev_write(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_write_block()
181 int dev_fill_block(void *buf, __u64 blk_addr) in dev_fill_block() argument
183 return dev_fill(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_fill_block()
186 int dev_read_block(void *buf, __u64 blk_addr) in dev_read_block() argument
188 return dev_read(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_read_block()
191 int dev_reada_block(__u64 blk_addr) in dev_reada_block() argument
[all …]
/external/f2fs-tools/include/
Df2fs_fs.h570 __le16 blk_addr; /* block index in current CP */ member
581 __le32 blk_addr; /* start block address of the extent */ member
/external/f2fs-tools/mkfs/
Df2fs_format.c931 raw_node->i.i_ext.blk_addr = 0; in f2fs_write_root_inode()