• Home
  • Raw
  • Download

Lines Matching refs:blkaddr

19 static void write_inode(u64 blkaddr, struct f2fs_node *inode)  in write_inode()  argument
24 ASSERT(dev_write_block(inode, blkaddr) >= 0); in write_inode()
32 u64 blkaddr, offset; in reserve_new_block() local
35 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
37 if (find_next_free_block(sbi, &blkaddr, 0, type)) { in reserve_new_block()
42 se = get_seg_entry(sbi, GET_SEGNO(sbi, blkaddr)); in reserve_new_block()
43 offset = OFFSET_IN_SEG(sbi, blkaddr); in reserve_new_block()
48 f2fs_set_main_bitmap(sbi, blkaddr, type); in reserve_new_block()
49 f2fs_set_sit_bitmap(sbi, blkaddr); in reserve_new_block()
60 *to = (block_t)blkaddr; in reserve_new_block()
69 unsigned int blkaddr = datablock_addr(dn->node_blk, dn->ofs_in_node); in new_data_block() local
84 if (blkaddr == NULL_ADDR) in new_data_block()
86 else if (blkaddr == NEW_ADDR) in new_data_block()
104 block_t blkaddr; in f2fs_read() local
142 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_read()
143 if (blkaddr == NULL_ADDR || blkaddr == NEW_ADDR) in f2fs_read()
153 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_read()
157 ASSERT(dev_read_block(buffer, blkaddr) >= 0); in f2fs_read()
186 block_t blkaddr; in f2fs_write() local
220 blkaddr = datablock_addr(dn.node_blk, dn.ofs_in_node); in f2fs_write()
221 if (blkaddr == NULL_ADDR || blkaddr == NEW_ADDR) { in f2fs_write()
226 blkaddr = dn.data_blkaddr; in f2fs_write()
236 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_write()
238 ASSERT(dev_write_block(blk_buffer, blkaddr) >= 0); in f2fs_write()
241 ASSERT(dev_write_block(buffer, blkaddr) >= 0); in f2fs_write()