Lines Matching refs:blkaddr
28 u64 blkaddr, offset; in reserve_new_block() local
57 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
59 if (find_next_free_block(sbi, &blkaddr, 0, type, false)) { in reserve_new_block()
64 se = get_seg_entry(sbi, GET_SEGNO(sbi, blkaddr)); in reserve_new_block()
65 offset = OFFSET_IN_SEG(sbi, blkaddr); in reserve_new_block()
75 f2fs_set_main_bitmap(sbi, blkaddr, type); in reserve_new_block()
76 f2fs_set_sit_bitmap(sbi, blkaddr); in reserve_new_block()
98 *to = (block_t)blkaddr; in reserve_new_block()
110 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block() local
123 dn->data_blkaddr = blkaddr; in new_data_block()
130 if (blkaddr == NULL_ADDR) in new_data_block()
132 else if (blkaddr == NEW_ADDR) in new_data_block()
169 block_t blkaddr; in f2fs_read() local
208 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read()
209 if (blkaddr == NULL_ADDR || blkaddr == NEW_ADDR) in f2fs_read()
219 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_read()
223 ASSERT(dev_read_block(buffer, blkaddr) >= 0); in f2fs_read()
258 block_t blkaddr; in f2fs_write_ex() local
317 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_write_ex()
318 if (blkaddr == NULL_ADDR || blkaddr == NEW_ADDR) { in f2fs_write_ex()
323 blkaddr = dn.data_blkaddr; in f2fs_write_ex()
334 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_write_ex()
336 ASSERT(dev_write_block(blk_buffer, blkaddr) >= 0); in f2fs_write_ex()
339 ASSERT(dev_write_block(buffer, blkaddr) >= 0); in f2fs_write_ex()
481 u32 blkaddr, prev_blkaddr, cur_blk = 0, end_blk; in update_largest_extent() local
517 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in update_largest_extent()
519 if (is_consecutive(prev_blkaddr, blkaddr)) in update_largest_extent()
529 if (cur_ext.len == 0 && is_valid_data_blkaddr(blkaddr)) { in update_largest_extent()
532 cur_ext.blk = blkaddr; in update_largest_extent()
535 prev_blkaddr = blkaddr; in update_largest_extent()
536 count = blkaddr == COMPRESS_ADDR ? cluster_size : 1; in update_largest_extent()