Lines Matching refs:blkaddr
351 unsigned int ra_blocks, unsigned int blkaddr, in adjust_por_ra_blocks() argument
354 if (blkaddr + 1 == next_blkaddr) in adjust_por_ra_blocks()
364 static int sanity_check_node_chain(struct f2fs_sb_info *sbi, block_t blkaddr, in sanity_check_node_chain() argument
399 if (*blkaddr_fast == blkaddr) { in sanity_check_node_chain()
401 " Run fsck to fix it.", __func__, blkaddr); in sanity_check_node_chain()
412 block_t blkaddr, blkaddr_fast; in find_fsync_dnodes() local
418 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes()
419 blkaddr_fast = blkaddr; in find_fsync_dnodes()
424 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_dnodes()
427 page = f2fs_get_tmp_page(sbi, blkaddr); in find_fsync_dnodes()
469 entry->blkaddr = blkaddr; in find_fsync_dnodes()
472 entry->last_dentry = blkaddr; in find_fsync_dnodes()
475 blkaddr = next_blkaddr_of_node(page); in find_fsync_dnodes()
478 err = sanity_check_node_chain(sbi, blkaddr, &blkaddr_fast, in find_fsync_dnodes()
495 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes() argument
498 unsigned int segno = GET_SEGNO(sbi, blkaddr); in check_index_in_prev_nodes()
499 unsigned short blkoff = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in check_index_in_prev_nodes()
595 if (tdn.data_blkaddr == blkaddr) in check_index_in_prev_nodes()
607 if (f2fs_data_blkaddr(&tdn) == blkaddr) in check_index_in_prev_nodes()
789 block_t blkaddr; in recover_data() local
794 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in recover_data()
799 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in recover_data()
802 page = f2fs_get_tmp_page(sbi, blkaddr); in recover_data()
828 if (entry->last_dentry == blkaddr) { in recover_data()
841 if (entry->blkaddr == blkaddr) in recover_data()
844 ra_blocks = adjust_por_ra_blocks(sbi, ra_blocks, blkaddr, in recover_data()
848 blkaddr = next_blkaddr_of_node(page); in recover_data()
851 f2fs_ra_meta_pages_cond(sbi, blkaddr, ra_blocks); in recover_data()