Lines Matching refs:f
260 struct extstore_conf_file *f = NULL; in extstore_init() local
292 for (f = fh; f != NULL; f = f->next) { in extstore_init()
293 f->fd = open(f->file, O_RDWR | O_CREAT, 0644); in extstore_init()
294 if (f->fd < 0) { in extstore_init()
308 if (fcntl(f->fd, F_SETLK, &lock) < 0) { in extstore_init()
313 if (ftruncate(f->fd, 0) < 0) { in extstore_init()
319 temp_page_count += f->page_count; in extstore_init()
320 f->offset = 0; in extstore_init()
339 f = NULL; // start at the first device. in extstore_init()
344 if (f == NULL || f->next == NULL) { in extstore_init()
345 f = fh; in extstore_init()
347 f = f->next; in extstore_init()
349 if (f->page_count) { in extstore_init()
350 f->page_count--; in extstore_init()
356 e->pages[i].fd = f->fd; in extstore_init()
357 e->pages[i].free_bucket = f->free_bucket; in extstore_init()
358 e->pages[i].offset = f->offset; in extstore_init()
360 f->offset += e->page_size; in extstore_init()