Lines Matching refs:F2FS_BLKSIZE
180 || (dcache_buf = (char *) malloc (F2FS_BLKSIZE * n)) == NULL in dcache_alloc_all()
251 return dcache_buf + F2FS_BLKSIZE * entry; in dcache_addr()
289 if (read(fd, dcache_buf + entry * F2FS_BLKSIZE, F2FS_BLKSIZE) < 0) { in dcache_io_read()
326 blk = offset / F2FS_BLKSIZE; in dcache_update_rw()
327 addr_in_blk = offset % F2FS_BLKSIZE; in dcache_update_rw()
328 start = blk * F2FS_BLKSIZE; in dcache_update_rw()
332 (size_t)(F2FS_BLKSIZE - addr_in_blk)); in dcache_update_rw()
368 start += F2FS_BLKSIZE; in dcache_update_rw()
417 memcpy(out + (i * F2FS_BLKSIZE), in sparse_read_blk()
418 blocks[cur_block], F2FS_BLKSIZE); in sparse_read_blk()
420 memset(out + (i * F2FS_BLKSIZE), 0, F2FS_BLKSIZE); in sparse_read_blk()
436 blocks[cur_block] = calloc(1, F2FS_BLKSIZE); in sparse_write_blk()
440 memcpy(blocks[cur_block], in + (i * F2FS_BLKSIZE), in sparse_write_blk()
441 F2FS_BLKSIZE); in sparse_write_blk()
469 if (!nr_blocks || len % F2FS_BLKSIZE) in sparse_import_segment()
483 F2FS_BLKSIZE * num, start); in sparse_merge_blocks()
486 buf = calloc(num, F2FS_BLKSIZE); in sparse_merge_blocks()
489 (unsigned long long)num * F2FS_BLKSIZE); in sparse_merge_blocks()
494 memcpy(buf + i * F2FS_BLKSIZE, blocks[start + i], F2FS_BLKSIZE); in sparse_merge_blocks()
503 F2FS_BLKSIZE * num, start); in sparse_merge_blocks()
533 return sparse_read_blk(offset / F2FS_BLKSIZE, in dev_read()
534 len / F2FS_BLKSIZE, buf); in dev_read()
580 return sparse_write_blk(offset / F2FS_BLKSIZE, in dev_write()
581 len / F2FS_BLKSIZE, buf); in dev_write()
602 return dev_write(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_write_block()
622 return sparse_write_zeroed_blk(offset / F2FS_BLKSIZE, in dev_fill()
623 len / F2FS_BLKSIZE); in dev_fill()
641 return dev_fill(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_fill_block()
646 return dev_read(buf, blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_read_block()
651 return dev_readahead(blk_addr << F2FS_BLKSIZE_BITS, F2FS_BLKSIZE); in dev_reada_block()
673 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, c.device_size); in f2fs_init_sparse_file()
683 c.device_size &= (~((uint64_t)(F2FS_BLKSIZE - 1))); in f2fs_init_sparse_file()
686 if (sparse_file_block_size(f2fs_sparse_file) != F2FS_BLKSIZE) { in f2fs_init_sparse_file()
690 blocks_count = c.device_size / F2FS_BLKSIZE; in f2fs_init_sparse_file()
697 zeroed_block = calloc(1, F2FS_BLKSIZE); in f2fs_init_sparse_file()
732 #define MAX_CHUNK_COUNT (MAX_CHUNK_SIZE / F2FS_BLKSIZE)
748 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, in f2fs_finalize_device()