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