• Home
  • Raw
  • Download

Lines Matching refs:blkaddr

311 		block_t blkaddr;  in print_inode_info()  local
317 blkaddr = le32_to_cpu(inode->i_addr[i + ofs]); in print_inode_info()
319 if (blkaddr == 0x0) in print_inode_info()
321 if (blkaddr == COMPRESS_ADDR) in print_inode_info()
323 else if (blkaddr == NEW_ADDR) in print_inode_info()
326 blkaddr, blkaddr); in print_inode_info()
572 static inline bool is_valid_data_blkaddr(block_t blkaddr) in is_valid_data_blkaddr() argument
574 if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR || in is_valid_data_blkaddr()
575 blkaddr == COMPRESS_ADDR) in is_valid_data_blkaddr()
581 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
587 if (blkaddr >= SIT_BLK_CNT(sbi)) in f2fs_is_valid_blkaddr()
591 if (blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
592 blkaddr < SM_I(sbi)->ssa_blkaddr) in f2fs_is_valid_blkaddr()
596 if (blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr()
597 blkaddr < __start_cp_addr(sbi)) in f2fs_is_valid_blkaddr()
601 if (blkaddr >= MAX_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
602 blkaddr < MAIN_BLKADDR(sbi)) in f2fs_is_valid_blkaddr()
622 block_t blkaddr, start_blk = 0, len = 0; in f2fs_ra_meta_pages() local
634 blkaddr = current_nat_addr(sbi, in f2fs_ra_meta_pages()
639 blkaddr = current_sit_addr(sbi, in f2fs_ra_meta_pages()
645 blkaddr = blkno; in f2fs_ra_meta_pages()
652 start_blk = blkaddr; in f2fs_ra_meta_pages()
654 } else if (start_blk + len == blkaddr) { in f2fs_ra_meta_pages()
1481 block_t blkaddr; in write_nat_bits() local
1500 blkaddr = (pgoff_t)(get_sb(nat_blkaddr) + in write_nat_bits()
1510 blkaddr += (1 << get_sb(log_blocks_per_seg)); in write_nat_bits()
1512 ret = dev_read_block(nat_block, blkaddr); in write_nat_bits()
1528 blkaddr = get_sb(segment0_blkaddr) + (set << in write_nat_bits()
1531 DBG(1, "\tWriting NAT bits pages, at offset 0x%08x\n", blkaddr); in write_nat_bits()
1534 if (dev_write_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in write_nat_bits()
1555 block_t blkaddr; in check_nat_bits() local
1564 blkaddr = get_sb(segment0_blkaddr) + (sbi->cur_cp << in check_nat_bits()
1568 if (dev_read_block(nat_bits + i * F2FS_BLKSIZE, blkaddr + i)) in check_nat_bits()
3276 block_t blkaddr; in find_fsync_inode() local
3284 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_inode()
3292 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_inode()
3295 err = dev_read_block(node_blk, blkaddr); in find_fsync_inode()
3313 entry->blkaddr = blkaddr; in find_fsync_inode()
3316 entry->last_dentry = blkaddr; in find_fsync_inode()
3320 blkaddr == next_blkaddr_of_node(node_blk)) { in find_fsync_inode()
3322 blkaddr, in find_fsync_inode()
3328 blkaddr = next_blkaddr_of_node(node_blk); in find_fsync_inode()
3337 block_t blkaddr) in do_record_fsync_data() argument
3345 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3347 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3365 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3379 blkaddr = datablock_addr(node_blk, ofs_in_node); in do_record_fsync_data()
3381 if (!is_valid_data_blkaddr(blkaddr)) in do_record_fsync_data()
3384 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) { in do_record_fsync_data()
3389 segno = GET_SEGNO(sbi, blkaddr); in do_record_fsync_data()
3391 offset = OFFSET_IN_SEG(sbi, blkaddr); in do_record_fsync_data()
3405 ino_of_node(node_blk), ofs_of_node(node_blk), blkaddr); in do_record_fsync_data()
3421 block_t blkaddr; in traverse_dnodes() local
3426 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in traverse_dnodes()
3434 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in traverse_dnodes()
3437 err = dev_read_block(node_blk, blkaddr); in traverse_dnodes()
3449 err = do_record_fsync_data(sbi, node_blk, blkaddr); in traverse_dnodes()
3453 if (entry->blkaddr == blkaddr) in traverse_dnodes()
3456 blkaddr = next_blkaddr_of_node(node_blk); in traverse_dnodes()