• Home
  • Raw
  • Download

Lines Matching refs:blk_addr

145 							u32 blk_addr)  in is_valid_ssa_node_blk()  argument
158 segno = GET_SEGNO(sbi, blk_addr); in is_valid_ssa_node_blk()
159 offset = OFFSET_IN_SEG(sbi, blk_addr); in is_valid_ssa_node_blk()
187 DBG(0, "target blk_addr [0x%x]\n", blk_addr); in is_valid_ssa_node_blk()
190 GET_SEGNO(sbi, blk_addr))); in is_valid_ssa_node_blk()
192 GET_SEGNO(sbi, blk_addr), in is_valid_ssa_node_blk()
193 OFFSET_IN_SEG(sbi, blk_addr)); in is_valid_ssa_node_blk()
201 segno, nid, blk_addr); in is_valid_ssa_node_blk()
222 u32 blk_addr) in is_valid_summary() argument
239 if (!IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) in is_valid_summary()
243 ret = dev_read_block(node_blk, ni.blk_addr); in is_valid_summary()
258 if (blk_addr == le32_to_cpu(target_blk_addr)) in is_valid_summary()
265 static int is_valid_ssa_data_blk(struct f2fs_sb_info *sbi, u32 blk_addr, in is_valid_ssa_data_blk() argument
279 segno = GET_SEGNO(sbi, blk_addr); in is_valid_ssa_data_blk()
280 offset = OFFSET_IN_SEG(sbi, blk_addr); in is_valid_ssa_data_blk()
321 DBG(0, "Target data block addr [0x%x]\n", blk_addr); in is_valid_ssa_data_blk()
324 } else if (is_valid_summary(sbi, sum_entry, blk_addr)) { in is_valid_ssa_data_blk()
404 if (ni->blk_addr == NEW_ADDR) { in sanity_check_nid()
409 if (!IS_VALID_BLK_ADDR(sbi, ni->blk_addr)) { in sanity_check_nid()
410 ASSERT_MSG("blkaddress is not valid. [0x%x]", ni->blk_addr); in sanity_check_nid()
414 ret = dev_read_block(node_blk, ni->blk_addr); in sanity_check_nid()
439 nid, ni->blk_addr, in sanity_check_nid()
457 if (f2fs_test_main_bitmap(sbi, ni->blk_addr) != 0) { in sanity_check_nid()
459 nid, ni->blk_addr); in sanity_check_nid()
482 if (is_valid_ssa_node_blk(sbi, nid, ni->blk_addr)) { in sanity_check_nid()
487 if (f2fs_test_sit_bitmap(sbi, ni->blk_addr) == 0) in sanity_check_nid()
489 ni->blk_addr); in sanity_check_nid()
491 if (f2fs_test_main_bitmap(sbi, ni->blk_addr) == 0) { in sanity_check_nid()
527 f2fs_set_main_bitmap(sbi, ni.blk_addr, CURSEG_COLD_NODE); in fsck_chk_xattr_blk()
555 f2fs_set_main_bitmap(sbi, ni.blk_addr, in fsck_chk_node_blk()
561 f2fs_set_main_bitmap(sbi, ni.blk_addr, in fsck_chk_node_blk()
567 f2fs_set_main_bitmap(sbi, ni.blk_addr, in fsck_chk_node_blk()
587 ext->blk = le32_to_cpu(i_ext->blk_addr); in get_extent_info()
650 if (IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) in fsck_reada_node_block()
651 dev_reada_block(ni.blk_addr); in fsck_reada_node_block()
693 if (f2fs_test_main_bitmap(sbi, ni->blk_addr) == 0) in fsck_chk_inode_blk()
697 f2fs_set_main_bitmap(sbi, ni->blk_addr, CURSEG_HOT_NODE); in fsck_chk_inode_blk()
699 if (f2fs_test_main_bitmap(sbi, ni->blk_addr) == 0) { in fsck_chk_inode_blk()
700 f2fs_set_main_bitmap(sbi, ni->blk_addr, in fsck_chk_inode_blk()
1126 ret = dev_write_block(node_blk, ni->blk_addr); in fsck_chk_inode_blk()
1170 ret = dev_write_block(node_blk, ni->blk_addr); in fsck_chk_dnode_blk()
1211 ret = dev_write_block(node_blk, ni.blk_addr); in fsck_chk_idnode_blk()
1254 ret = dev_write_block(node_blk, ni.blk_addr); in fsck_chk_didnode_blk()
1497 if (IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) { in __chk_dentries()
1498 dev_reada_block(ni.blk_addr); in __chk_dentries()
1674 int fsck_chk_dentry_blk(struct f2fs_sb_info *sbi, int casefolded, u32 blk_addr, in fsck_chk_dentry_blk() argument
1684 ret = dev_read_block(de_blk, blk_addr); in fsck_chk_dentry_blk()
1694 ret = dev_write_block(de_blk, blk_addr); in fsck_chk_dentry_blk()
1697 fsck->dentry_depth, blk_addr); in fsck_chk_dentry_blk()
1701 fsck->dentry_depth, blk_addr, dentries, in fsck_chk_dentry_blk()
1710 u32 blk_addr, struct child_info *child, int last_blk, in fsck_chk_data_blk() argument
1717 if (blk_addr == NEW_ADDR) { in fsck_chk_data_blk()
1722 if (!IS_VALID_BLK_ADDR(sbi, blk_addr)) { in fsck_chk_data_blk()
1723 ASSERT_MSG("blkaddress is not valid. [0x%x]", blk_addr); in fsck_chk_data_blk()
1727 if (is_valid_ssa_data_blk(sbi, blk_addr, parent_nid, in fsck_chk_data_blk()
1734 if (f2fs_test_sit_bitmap(sbi, blk_addr) == 0) in fsck_chk_data_blk()
1735 ASSERT_MSG("SIT bitmap is 0x0. blk_addr[0x%x]", blk_addr); in fsck_chk_data_blk()
1737 if (f2fs_test_main_bitmap(sbi, blk_addr) != 0) in fsck_chk_data_blk()
1739 blk_addr, parent_nid, idx_in_node); in fsck_chk_data_blk()
1744 f2fs_set_main_bitmap(sbi, blk_addr, CURSEG_HOT_DATA); in fsck_chk_data_blk()
1745 return fsck_chk_dentry_blk(sbi, casefolded, blk_addr, child, in fsck_chk_data_blk()
1748 f2fs_set_main_bitmap(sbi, blk_addr, CURSEG_WARM_DATA); in fsck_chk_data_blk()
1791 !IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) { in fsck_chk_orphan_node()
1846 !IS_VALID_BLK_ADDR(sbi, ni.blk_addr)) in fsck_chk_quota_node()
2092 ret = dev_write_block(node_blk, ni.blk_addr); in fix_hard_links()
2484 err = dev_read_block(node, ni.blk_addr); in fsck_get_lpf()
2491 err = dev_read_block(node, ni.blk_addr); in fsck_get_lpf()
2494 lpf_ino, ni.blk_addr); in fsck_get_lpf()
2521 err = dev_read_block(node, ni.blk_addr); in fsck_get_lpf()
2524 de.ino, ni.blk_addr); in fsck_get_lpf()
2557 ino, ftype, ni.blk_addr, 0); in fsck_do_reconnect_file()
2568 ret = dev_write_block(fnode, ni.blk_addr); in fsck_do_reconnect_file()
2588 err = dev_read_block(node, ni.blk_addr); in fsck_failed_reconnect_file_dnode()
2593 f2fs_clear_main_bitmap(sbi, ni.blk_addr); in fsck_failed_reconnect_file_dnode()
2621 err = dev_read_block(node, ni.blk_addr); in fsck_failed_reconnect_file_idnode()
2626 f2fs_clear_main_bitmap(sbi, ni.blk_addr); in fsck_failed_reconnect_file_idnode()
2651 err = dev_read_block(node, ni.blk_addr); in fsck_failed_reconnect_file_didnode()
2656 f2fs_clear_main_bitmap(sbi, ni.blk_addr); in fsck_failed_reconnect_file_didnode()
2685 err = dev_read_block(node, ni.blk_addr); in fsck_failed_reconnect_file()
2692 f2fs_clear_main_bitmap(sbi, ni.blk_addr); in fsck_failed_reconnect_file()
2700 f2fs_clear_main_bitmap(sbi, ni.blk_addr); in fsck_failed_reconnect_file()
2774 err = dev_read_block(node, ni.blk_addr); in fsck_reconnect_file()
2813 err = dev_read_block(node, ni.blk_addr); in fsck_reconnect_file()
3057 i, ni.blk_addr); in fsck_verify()