Lines Matching refs:blkaddr
28 u64 blkaddr, offset; in reserve_new_block() local
58 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
63 blkaddr = __end_block_addr(sbi); in reserve_new_block()
67 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
72 if (find_next_free_block(sbi, &blkaddr, left, type, false)) { in reserve_new_block()
77 se = get_seg_entry(sbi, GET_SEGNO(sbi, blkaddr)); in reserve_new_block()
78 offset = OFFSET_IN_SEG(sbi, blkaddr); in reserve_new_block()
88 f2fs_set_main_bitmap(sbi, blkaddr, type); in reserve_new_block()
89 f2fs_set_sit_bitmap(sbi, blkaddr); in reserve_new_block()
111 *to = (block_t)blkaddr; in reserve_new_block()
123 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block() local
136 dn->data_blkaddr = blkaddr; in new_data_block()
143 if (blkaddr == NULL_ADDR) in new_data_block()
145 else if (blkaddr == NEW_ADDR) in new_data_block()
182 block_t blkaddr; in f2fs_read() local
221 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read()
222 if (blkaddr == NULL_ADDR || blkaddr == NEW_ADDR) in f2fs_read()
232 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_read()
236 ASSERT(dev_read_block(buffer, blkaddr) >= 0); in f2fs_read()
271 block_t blkaddr; in f2fs_write_ex() local
330 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_write_ex()
331 if (blkaddr == NULL_ADDR || blkaddr == NEW_ADDR) { in f2fs_write_ex()
336 blkaddr = dn.data_blkaddr; in f2fs_write_ex()
347 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_write_ex()
349 ASSERT(dev_write_block(blk_buffer, blkaddr) >= 0); in f2fs_write_ex()
352 ASSERT(dev_write_block(buffer, blkaddr) >= 0); in f2fs_write_ex()
494 u32 blkaddr, prev_blkaddr, cur_blk = 0, end_blk; in update_largest_extent() local
530 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in update_largest_extent()
532 if (is_consecutive(prev_blkaddr, blkaddr)) in update_largest_extent()
542 if (cur_ext.len == 0 && is_valid_data_blkaddr(blkaddr)) { in update_largest_extent()
545 cur_ext.blk = blkaddr; in update_largest_extent()
548 prev_blkaddr = blkaddr; in update_largest_extent()
549 count = blkaddr == COMPRESS_ADDR ? cluster_size : 1; in update_largest_extent()