Lines Matching refs:blk_buffer
153 char *blk_buffer; in f2fs_read() local
165 blk_buffer = calloc(BLOCK_SZ, 2); in f2fs_read()
166 ASSERT(blk_buffer); in f2fs_read()
167 inode = (struct f2fs_node*)(blk_buffer + BLOCK_SZ); in f2fs_read()
209 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_read()
210 memcpy(buffer, blk_buffer + off_in_blk, len_in_blk); in f2fs_read()
226 free(blk_buffer); in f2fs_read()
237 char *blk_buffer; in f2fs_write() local
248 blk_buffer = calloc(BLOCK_SZ, 2); in f2fs_write()
249 ASSERT(blk_buffer); in f2fs_write()
250 inode = (struct f2fs_node*)(blk_buffer + BLOCK_SZ); in f2fs_write()
279 err = new_data_block(sbi, blk_buffer, in f2fs_write()
293 ASSERT(dev_read_block(blk_buffer, blkaddr) >= 0); in f2fs_write()
294 memcpy(blk_buffer + off_in_blk, buffer, len_in_blk); in f2fs_write()
295 ASSERT(dev_write_block(blk_buffer, blkaddr) >= 0); in f2fs_write()
320 free(blk_buffer); in f2fs_write()