Lines Matching refs:blk_buffer
163 char *blk_buffer; in f2fs_read() local
175 blk_buffer = calloc(BLOCK_SZ, 2); in f2fs_read()
176 ASSERT(blk_buffer); in f2fs_read()
177 inode = (struct f2fs_node*)(blk_buffer + BLOCK_SZ); in f2fs_read()
219 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_read()
220 memcpy(buffer, blk_buffer + off_in_blk, len_in_blk); in f2fs_read()
236 free(blk_buffer); in f2fs_read()
253 char *blk_buffer; in f2fs_write_ex() local
277 blk_buffer = calloc(BLOCK_SZ, 2); in f2fs_write_ex()
278 ASSERT(blk_buffer); in f2fs_write_ex()
279 inode = (struct f2fs_node*)(blk_buffer + BLOCK_SZ); in f2fs_write_ex()
319 err = new_data_block(sbi, blk_buffer, in f2fs_write_ex()
334 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_write_ex()
335 memcpy(blk_buffer + off_in_blk, buffer, len_in_blk); in f2fs_write_ex()
336 ASSERT(dev_write_block(blk_buffer, blkaddr) >= 0); in f2fs_write_ex()
362 free(blk_buffer); in f2fs_write_ex()