Searched refs:nr_files (Results 1 - 22 of 22) sorted by relevance

/external/fio/engines/
H A Dbinject.c123 ret = poll(bd->pfds, td->o.nr_files, -1);
132 if (pollin_events(bd->pfds, td->o.nr_files))
403 bd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files);
404 memset(bd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files);
406 bd->fd_flags = malloc(sizeof(int) * td->o.nr_files);
407 memset(bd->fd_flags, 0, sizeof(int) * td->o.nr_files);
H A Dcpu.c89 o->nr_files = o->open_files = 1;
H A Dsg.c135 ret = poll(sd->pfds, td->o.nr_files, -1);
144 if (pollin_events(sd->pfds, td->o.nr_files))
485 sd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files);
486 memset(sd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files);
487 sd->fd_flags = malloc(sizeof(int) * td->o.nr_files);
488 memset(sd->fd_flags, 0, sizeof(int) * td->o.nr_files);
H A Dmmap.c217 mmap_map_size = MMAP_TOTAL_SZ / o->nr_files;
H A Drbd.c615 td->o.nr_files = td->o.nr_files ? : 1;
H A Dlibhdfs.c330 file_size = floor(td->o.size / td->o.nr_files);
H A Dnet.c1369 td->o.nr_files = td->o.nr_files ?: 1;
H A Drdma.c1331 td->o.nr_files = td->o.nr_files ?: 1;
/external/ltp/testcases/kernel/fs/mongo/
H A Dreiser_fract_tree.c410 /* We have already determined that nr_files can fit in bytes_to_consume space.
417 long nr_files)
422 long remaining_files = nr_files;
429 sizes_index = sizes_start = malloc(nr_files * sizeof(long));
433 // we alloc space for nr_files, so we should avoid
447 /* don't decrement below sizes_start if nr_files is 0 */
414 make_fractal_tree(long median_file_size, long maximum_file_size, long median_dir_nr_files, long max_dir_nr_files, long median_dir_branching, long max_dir_branching, long nr_files) argument
/external/fio/t/
H A Dbtrace2fio.c79 int nr_files; member in struct:btrace_pid
292 for (i = 0; i < p->nr_files; i++) {
309 p->files = realloc(p->files, (p->nr_files + 1) * sizeof(*f));
310 f = &p->files[p->nr_files];
314 p->nr_files++;
641 for (i = 0; i < p->nr_files; i++)
660 if (!p->nr_files) {
708 for (i = 0; i < p->nr_files; i++) {
779 p->nr_files++;
840 for (i = 0; i < p->nr_files;
[all...]
/external/fio/
H A Dclient.h76 unsigned int nr_files; member in struct:fio_client
H A Dfilesetup.c751 f->real_file_size = td->o.size / td->o.nr_files;
901 !(o->nr_files && (o->file_size_low || o->file_size_high))) {
911 if (!o->file_size_low && o->nr_files) {
914 fs = o->size / o->nr_files;
915 all_fs = fs * o->nr_files;
924 * is given, ->io_size is size / nr_files.
1010 assert(td->o.nr_files == 1); /* checked in fixup_options */
1315 td->o.nr_files = 0;
1474 unsigned int new_size = td->o.nr_files + 1;
1529 td->o.nr_files
[all...]
H A Dthread_options.h91 unsigned int nr_files; member in struct:thread_options
364 uint32_t nr_files; member in struct:thread_options_pack
H A Dinit.c701 if (o->nr_files > td->files_index)
702 o->nr_files = td->files_index;
704 if (o->open_files > o->nr_files || !o->open_files)
705 o->open_files = o->nr_files;
866 if (td->o.block_error_hist && td->o.nr_files != 1) {
869 "provided\n", td->o.nr_files);
892 unsigned long nranges = td->o.nr_files << FIO_FSERVICE_SHIFT;
1319 if (o->nr_files == 1 && exists_and_not_regfile(jobname))
1322 for (i = 0; i < o->nr_files; i++)
H A Dio_u.c1095 return (unsigned int) ((double) td->o.nr_files
1169 if (td->next_file >= td->o.nr_files)
1213 assert(td->o.nr_files <= td->files_index);
1215 if (td->nr_done_files >= td->o.nr_files) {
1217 " nr_files=%d\n", td->nr_open_files,
1219 td->o.nr_files);
1286 td->nr_done_files, td->o.nr_files);
H A Dcconv.c145 o->nr_files = le32_to_cpu(top->nr_files);
353 top->nr_files = cpu_to_le32(o->nr_files);
H A Dclient.c190 while (client->nr_files) {
191 struct client_file *cf = &client->files[--client->nr_files];
362 new_size = (client->nr_files + 1) * sizeof(struct client_file);
368 cf = &client->files[client->nr_files];
371 client->nr_files++;
823 if (client->nr_files) {
826 for (i = 0; i < client->nr_files; i++) {
H A Dioengines.c422 td->o.nr_files);
H A Dfio.h670 (i) < (td)->o.nr_files && ((f) = (td)->files[i]) != NULL; \
H A Dverify.c1594 depth += (td->o.iodepth * td->o.nr_files);
1621 s->nofiles = cpu_to_le64((uint64_t) td->o.nr_files);
H A Doptions.c1240 td->o.nr_files = 0;
1291 td->o.nr_files = 0;
2207 .alias = "nr_files",
2209 .off1 = offsetof(struct thread_options, nr_files),
/external/kernel-headers/original/uapi/linux/
H A Dfs.h90 unsigned long nr_files; /* read only */ member in struct:files_stat_struct

Completed in 285 milliseconds