Lines Matching refs:f2fs_sparse_file
36 struct sparse_file *f2fs_sparse_file; variable
153 return sparse_file_add_data(f2fs_sparse_file, blocks[start], in sparse_merge_blocks()
288 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, c.device_size); in f2fs_init_sparse_file()
290 f2fs_sparse_file = sparse_file_import(c.devices[0].fd, in f2fs_init_sparse_file()
292 if (!f2fs_sparse_file) in f2fs_init_sparse_file()
295 c.device_size = sparse_file_len(f2fs_sparse_file, 0, 0); in f2fs_init_sparse_file()
299 if (sparse_file_block_size(f2fs_sparse_file) != F2FS_BLKSIZE) { in f2fs_init_sparse_file()
310 return sparse_file_foreach_chunk(f2fs_sparse_file, true, false, in f2fs_init_sparse_file()
330 sparse_file_destroy(f2fs_sparse_file); in f2fs_finalize_device()
334 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, in f2fs_finalize_device()
360 sparse_file_write(f2fs_sparse_file, c.devices[0].fd, in f2fs_finalize_device()
363 sparse_file_destroy(f2fs_sparse_file); in f2fs_finalize_device()
368 f2fs_sparse_file = NULL; in f2fs_finalize_device()