Lines Matching refs:blkaddr
313 block_t blkaddr; in print_inode_info() local
319 blkaddr = le32_to_cpu(inode->i_addr[i + ofs]); in print_inode_info()
321 if (blkaddr == 0x0) in print_inode_info()
323 if (blkaddr == COMPRESS_ADDR) in print_inode_info()
325 else if (blkaddr == NEW_ADDR) in print_inode_info()
328 blkaddr, blkaddr); in print_inode_info()
652 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
658 if (blkaddr >= SIT_BLK_CNT(sbi)) in f2fs_is_valid_blkaddr()
662 if (blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
663 blkaddr < SM_I(sbi)->ssa_blkaddr) in f2fs_is_valid_blkaddr()
667 if (blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr()
668 blkaddr < __start_cp_addr(sbi)) in f2fs_is_valid_blkaddr()
672 if (blkaddr >= MAX_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
673 blkaddr < MAIN_BLKADDR(sbi)) in f2fs_is_valid_blkaddr()
693 block_t blkaddr, start_blk = 0, len = 0; in f2fs_ra_meta_pages() local
705 blkaddr = current_nat_addr(sbi, in f2fs_ra_meta_pages()
710 blkaddr = current_sit_addr(sbi, in f2fs_ra_meta_pages()
716 blkaddr = blkno; in f2fs_ra_meta_pages()
723 start_blk = blkaddr; in f2fs_ra_meta_pages()
725 } else if (start_blk + len == blkaddr) { in f2fs_ra_meta_pages()
1626 block_t blkaddr; in write_nat_bits() local
1645 blkaddr = (pgoff_t)(get_sb(nat_blkaddr) + in write_nat_bits()
1655 blkaddr += (1 << get_sb(log_blocks_per_seg)); in write_nat_bits()
1657 ret = dev_read_block(nat_block, blkaddr); in write_nat_bits()
1673 blkaddr = get_sb(segment0_blkaddr) + (set << in write_nat_bits()
1676 DBG(1, "\tWriting NAT bits pages, at offset 0x%08x\n", blkaddr); in write_nat_bits()
1679 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits()
1700 block_t blkaddr; in check_nat_bits() local
1709 blkaddr = get_sb(segment0_blkaddr) + (sbi->cur_cp << in check_nat_bits()
1713 if (dev_read_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in check_nat_bits()
3441 block_t blkaddr; in find_fsync_inode() local
3449 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_inode()
3457 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_inode()
3460 err = dev_read_block(node_blk, blkaddr); in find_fsync_inode()
3478 entry->blkaddr = blkaddr; in find_fsync_inode()
3481 entry->last_dentry = blkaddr; in find_fsync_inode()
3485 blkaddr == next_blkaddr_of_node(node_blk)) { in find_fsync_inode()
3487 blkaddr, in find_fsync_inode()
3493 blkaddr = next_blkaddr_of_node(node_blk); in find_fsync_inode()
3502 block_t blkaddr) in do_record_fsync_data() argument
3510 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3512 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3530 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3544 blkaddr = datablock_addr(node_blk, ofs_in_node); in do_record_fsync_data()
3546 if (!is_valid_data_blkaddr(blkaddr)) in do_record_fsync_data()
3549 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) { in do_record_fsync_data()
3554 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3556 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3570 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3586 block_t blkaddr; in traverse_dnodes() local
3591 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in traverse_dnodes()
3599 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in traverse_dnodes()
3602 err = dev_read_block(node_blk, blkaddr); in traverse_dnodes()
3614 err = do_record_fsync_data(sbi, node_blk, blkaddr); in traverse_dnodes()
3618 if (entry->blkaddr == blkaddr) in traverse_dnodes()
3621 blkaddr = next_blkaddr_of_node(node_blk); in traverse_dnodes()