Lines Matching refs:ffsb_file
54 int node_cmp(struct ffsb_file *a, struct ffsb_file *b)
101 static void file_destructor(struct ffsb_file *file) in file_destructor()
113 struct ffsb_file *cur = cl_remove_head(bf->holes); in destroy_filelist()
121 struct ffsb_file *add_file(struct benchfiles *b, uint64_t size, randdata_t * rd) in add_file()
123 struct ffsb_file *newfile, *oldfile = NULL; in add_file()
130 newfile = ffsb_malloc(sizeof(struct ffsb_file)); in add_file()
181 struct ffsb_file *add_dir(struct benchfiles *b, uint64_t size, randdata_t * rd) in add_dir()
183 struct ffsb_file *newdir, *olddir = NULL; in add_dir()
186 newdir = ffsb_malloc(sizeof(struct ffsb_file)); in add_dir()
231 static struct ffsb_file *add_file_named(struct benchfiles *b, uint64_t size, in add_file_named()
234 struct ffsb_file *newfile = NULL; in add_file_named()
236 newfile = ffsb_malloc(sizeof(struct ffsb_file)); in add_file_named()
237 memset(newfile, 0, sizeof(struct ffsb_file)); in add_file_named()
275 void remove_file(struct benchfiles *b, struct ffsb_file *entry) in remove_file()
286 static struct ffsb_file *choose_file(struct benchfiles *b, randdata_t * rd) in choose_file()
290 struct ffsb_file temp; in choose_file()
308 struct ffsb_file *choose_file_reader(struct benchfiles *bf, randdata_t * rd) in choose_file_reader()
310 struct ffsb_file *ret; in choose_file_reader()
328 struct ffsb_file *choose_file_writer(struct benchfiles *bf, randdata_t * rd) in choose_file_writer()
330 struct ffsb_file *ret; in choose_file_writer()
345 void unlock_file_reader(struct ffsb_file *file) in unlock_file_reader()
350 void unlock_file_writer(struct ffsb_file *file) in unlock_file_writer()
355 void rename_file(struct ffsb_file *file) in rename_file()
414 struct ffsb_file *ffsb_file = NULL; in add_dir_to_filelist() local
428 ffsb_file = in add_dir_to_filelist()
431 unlock_file_writer(ffsb_file); in add_dir_to_filelist()