• Home
  • Raw
  • Download

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()
1569 block_t blkaddr; in write_nat_bits() local
1588 blkaddr = (pgoff_t)(get_sb(nat_blkaddr) + in write_nat_bits()
1598 blkaddr += (1 << get_sb(log_blocks_per_seg)); in write_nat_bits()
1600 ret = dev_read_block(nat_block, blkaddr); in write_nat_bits()
1616 blkaddr = get_sb(segment0_blkaddr) + (set << in write_nat_bits()
1619 DBG(1, "\tWriting NAT bits pages, at offset 0x%08x\n", blkaddr); in write_nat_bits()
1622 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits()
1643 block_t blkaddr; in check_nat_bits() local
1652 blkaddr = get_sb(segment0_blkaddr) + (sbi->cur_cp << in check_nat_bits()
1656 if (dev_read_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in check_nat_bits()
3376 block_t blkaddr; in find_fsync_inode() local
3384 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_inode()
3392 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_inode()
3395 err = dev_read_block(node_blk, blkaddr); in find_fsync_inode()
3413 entry->blkaddr = blkaddr; in find_fsync_inode()
3416 entry->last_dentry = blkaddr; in find_fsync_inode()
3420 blkaddr == next_blkaddr_of_node(node_blk)) { in find_fsync_inode()
3422 blkaddr, in find_fsync_inode()
3428 blkaddr = next_blkaddr_of_node(node_blk); in find_fsync_inode()
3437 block_t blkaddr) in do_record_fsync_data() argument
3445 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3447 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3465 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3479 blkaddr = datablock_addr(node_blk, ofs_in_node); in do_record_fsync_data()
3481 if (!is_valid_data_blkaddr(blkaddr)) in do_record_fsync_data()
3484 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) { in do_record_fsync_data()
3489 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3491 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3505 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3521 block_t blkaddr; in traverse_dnodes() local
3526 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in traverse_dnodes()
3534 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in traverse_dnodes()
3537 err = dev_read_block(node_blk, blkaddr); in traverse_dnodes()
3549 err = do_record_fsync_data(sbi, node_blk, blkaddr); in traverse_dnodes()
3553 if (entry->blkaddr == blkaddr) in traverse_dnodes()
3556 blkaddr = next_blkaddr_of_node(node_blk); in traverse_dnodes()