Lines Matching refs:f2fs_sparse_file
43 struct sparse_file *f2fs_sparse_file; variable
475 return sparse_file_add_fill(f2fs_sparse_file, 0x0, in sparse_merge_blocks()
495 return sparse_file_add_data(f2fs_sparse_file, blocks[start], in sparse_merge_blocks()
644 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, c.device_size); in f2fs_init_sparse_file()
645 if (!f2fs_sparse_file) in f2fs_init_sparse_file()
648 f2fs_sparse_file = sparse_file_import(c.devices[0].fd, in f2fs_init_sparse_file()
650 if (!f2fs_sparse_file) in f2fs_init_sparse_file()
653 c.device_size = sparse_file_len(f2fs_sparse_file, 0, 0); in f2fs_init_sparse_file()
657 if (sparse_file_block_size(f2fs_sparse_file) != F2FS_BLKSIZE) { in f2fs_init_sparse_file()
674 return sparse_file_foreach_chunk(f2fs_sparse_file, true, false, in f2fs_init_sparse_file()
688 if (f2fs_sparse_file != NULL) { in f2fs_release_sparse_resource()
689 sparse_file_destroy(f2fs_sparse_file); in f2fs_release_sparse_resource()
690 f2fs_sparse_file = NULL; in f2fs_release_sparse_resource()
715 sparse_file_destroy(f2fs_sparse_file); in f2fs_finalize_device()
719 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, in f2fs_finalize_device()
765 sparse_file_write(f2fs_sparse_file, c.devices[0].fd, in f2fs_finalize_device()