Lines Matching refs:blkaddr
312 block_t blkaddr; in print_inode_info() local
318 blkaddr = le32_to_cpu(inode->i_addr[i + ofs]); in print_inode_info()
320 if (blkaddr == 0x0) in print_inode_info()
322 if (blkaddr == COMPRESS_ADDR) in print_inode_info()
324 else if (blkaddr == NEW_ADDR) in print_inode_info()
327 blkaddr, blkaddr); in print_inode_info()
587 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
593 if (blkaddr >= SIT_BLK_CNT(sbi)) in f2fs_is_valid_blkaddr()
597 if (blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
598 blkaddr < SM_I(sbi)->ssa_blkaddr) in f2fs_is_valid_blkaddr()
602 if (blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr()
603 blkaddr < __start_cp_addr(sbi)) in f2fs_is_valid_blkaddr()
607 if (blkaddr >= MAX_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
608 blkaddr < MAIN_BLKADDR(sbi)) in f2fs_is_valid_blkaddr()
628 block_t blkaddr, start_blk = 0, len = 0; in f2fs_ra_meta_pages() local
640 blkaddr = current_nat_addr(sbi, in f2fs_ra_meta_pages()
645 blkaddr = current_sit_addr(sbi, in f2fs_ra_meta_pages()
651 blkaddr = blkno; in f2fs_ra_meta_pages()
658 start_blk = blkaddr; in f2fs_ra_meta_pages()
660 } else if (start_blk + len == blkaddr) { in f2fs_ra_meta_pages()
1530 block_t blkaddr; in write_nat_bits() local
1549 blkaddr = (pgoff_t)(get_sb(nat_blkaddr) + in write_nat_bits()
1559 blkaddr += (1 << get_sb(log_blocks_per_seg)); in write_nat_bits()
1561 ret = dev_read_block(nat_block, blkaddr); in write_nat_bits()
1577 blkaddr = get_sb(segment0_blkaddr) + (set << in write_nat_bits()
1580 DBG(1, "\tWriting NAT bits pages, at offset 0x%08x\n", blkaddr); in write_nat_bits()
1583 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits()
1604 block_t blkaddr; in check_nat_bits() local
1613 blkaddr = get_sb(segment0_blkaddr) + (sbi->cur_cp << in check_nat_bits()
1617 if (dev_read_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in check_nat_bits()
3337 block_t blkaddr; in find_fsync_inode() local
3345 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_inode()
3353 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_inode()
3356 err = dev_read_block(node_blk, blkaddr); in find_fsync_inode()
3374 entry->blkaddr = blkaddr; in find_fsync_inode()
3377 entry->last_dentry = blkaddr; in find_fsync_inode()
3381 blkaddr == next_blkaddr_of_node(node_blk)) { in find_fsync_inode()
3383 blkaddr, in find_fsync_inode()
3389 blkaddr = next_blkaddr_of_node(node_blk); in find_fsync_inode()
3398 block_t blkaddr) in do_record_fsync_data() argument
3406 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3408 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3426 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3440 blkaddr = datablock_addr(node_blk, ofs_in_node); in do_record_fsync_data()
3442 if (!is_valid_data_blkaddr(blkaddr)) in do_record_fsync_data()
3445 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) { in do_record_fsync_data()
3450 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3452 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3466 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3482 block_t blkaddr; in traverse_dnodes() local
3487 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in traverse_dnodes()
3495 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in traverse_dnodes()
3498 err = dev_read_block(node_blk, blkaddr); in traverse_dnodes()
3510 err = do_record_fsync_data(sbi, node_blk, blkaddr); in traverse_dnodes()
3514 if (entry->blkaddr == blkaddr) in traverse_dnodes()
3517 blkaddr = next_blkaddr_of_node(node_blk); in traverse_dnodes()