/kernel/linux/linux-5.10/tools/io_uring/ |
D | io_uring-bench.c | 89 unsigned nr_files; member 123 s->fds = calloc(s->nr_files, sizeof(__s32)); in io_uring_register_files() 124 for (i = 0; i < s->nr_files; i++) { in io_uring_register_files() 130 s->nr_files); in io_uring_register_files() 140 return (DEPTH + s->nr_files - 1) / s->nr_files; in file_depth() 155 if (s->nr_files == 1) { in init_io() 161 if (s->cur_file == s->nr_files) in init_io() 470 for (i = 0; i < s->nr_files; i++) { in file_depths() 473 if (i + 1 == s->nr_files) in file_depths() 501 if (s->nr_files == MAX_FDS) { in main() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | file_table.c | 43 static struct percpu_counter nr_files __cacheline_aligned_in_smp; 57 percpu_counter_dec(&nr_files); in file_free() 66 return percpu_counter_read_positive(&nr_files); in get_nr_files() 85 files_stat.nr_files = get_nr_files(); in proc_nr_files() 147 if (percpu_counter_sum_positive(&nr_files) >= files_stat.max_files) in alloc_empty_file() 153 percpu_counter_inc(&nr_files); in alloc_empty_file() 385 percpu_counter_init(&nr_files, 0, GFP_KERNEL); in files_init()
|
D | io_uring.c | 7281 int i, nr_files; in __io_sqe_files_scm() local 7296 nr_files = 0; in __io_sqe_files_scm() 7303 fpl->fp[nr_files] = get_file(file); in __io_sqe_files_scm() 7304 unix_inflight(fpl->user, fpl->fp[nr_files]); in __io_sqe_files_scm() 7305 nr_files++; in __io_sqe_files_scm() 7308 if (nr_files) { in __io_sqe_files_scm() 7310 fpl->count = nr_files; in __io_sqe_files_scm() 7316 for (i = 0; i < nr_files; i++) in __io_sqe_files_scm() 7369 unsigned nr_tables, unsigned nr_files) in io_sqe_alloc_file_tables() argument 7377 this_files = min(nr_files, IORING_MAX_FILES_TABLE); in io_sqe_alloc_file_tables() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | io_uring.h | 69 TP_PROTO(void *ctx, unsigned opcode, unsigned nr_files, 72 TP_ARGS(ctx, opcode, nr_files, nr_bufs, eventfd, ret), 77 __field( unsigned, nr_files ) 86 __entry->nr_files = nr_files; 94 __entry->ctx, __entry->opcode, __entry->nr_files,
|
/kernel/linux/linux-5.10/fs/afs/ |
D | yfsclient.c | 1635 _debug("status count: %u/%u", tmp, op->nr_files); in yfs_deliver_fs_inline_bulk_status() 1636 if (tmp != op->nr_files) in yfs_deliver_fs_inline_bulk_status() 1667 if (call->count < op->nr_files) in yfs_deliver_fs_inline_bulk_status() 1684 if (tmp != op->nr_files) in yfs_deliver_fs_inline_bulk_status() 1714 if (call->count < op->nr_files) in yfs_deliver_fs_inline_bulk_status() 1762 key_serial(op->key), vp->fid.vid, vp->fid.vnode, op->nr_files); in yfs_fs_inline_bulk_status() 1768 sizeof(struct yfs_xdr_YFSFid) * op->nr_files, in yfs_fs_inline_bulk_status() 1777 bp = xdr_encode_u32(bp, op->nr_files); in yfs_fs_inline_bulk_status() 1780 for (i = 0; i < op->nr_files - 2; i++) in yfs_fs_inline_bulk_status()
|
D | fsclient.c | 1789 _debug("status count: %u/%u", tmp, op->nr_files); in afs_deliver_fs_inline_bulk_status() 1790 if (tmp != op->nr_files) in afs_deliver_fs_inline_bulk_status() 1821 if (call->count < op->nr_files) in afs_deliver_fs_inline_bulk_status() 1838 if (tmp != op->nr_files) in afs_deliver_fs_inline_bulk_status() 1868 if (call->count < op->nr_files) in afs_deliver_fs_inline_bulk_status() 1931 key_serial(op->key), vp->fid.vid, vp->fid.vnode, op->nr_files); in afs_fs_inline_bulk_status() 1934 (2 + op->nr_files * 3) * 4, in afs_fs_inline_bulk_status() 1942 *bp++ = htonl(op->nr_files); in afs_fs_inline_bulk_status() 1949 for (i = 0; i < op->nr_files - 2; i++) { in afs_fs_inline_bulk_status()
|
D | dir.c | 643 for (i = 0; i < op->nr_files; i++) { in afs_do_lookup_success() 798 op->nr_files = cookie->nr_fids; in afs_do_lookup() 799 _debug("nr_files %u", op->nr_files); in afs_do_lookup() 803 if (op->nr_files > 2) { in afs_do_lookup() 804 op->more_files = kvcalloc(op->nr_files - 2, in afs_do_lookup() 810 for (i = 2; i < op->nr_files; i++) { in afs_do_lookup()
|
D | fs_operation.c | 238 for (i = 0; i < op->nr_files - 2; i++) in afs_put_operation()
|
D | inode.c | 354 op->nr_files = 1; in afs_fetch_status() 538 op->nr_files = 1; in afs_root_iget()
|
D | super.c | 771 op->nr_files = 1; in afs_statfs()
|
D | internal.h | 782 short nr_files; /* Number of entries in file[], more_files */ member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | fs.h | 69 unsigned long nr_files; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | fs.h | 98 unsigned long nr_files; /* read only */ member
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
D | fs.h | 98 unsigned long nr_files; /* read only */ member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | fs.h | 55 unsigned long nr_files; member
|
/kernel/linux/linux-5.10/fs/proc/ |
D | proc_sysctl.c | 1421 int nr_files = 0; in register_leaf_sysctl_tables() local 1429 nr_files++; in register_leaf_sysctl_tables() 1434 if (nr_dirs && nr_files) { in register_leaf_sysctl_tables() 1436 files = kcalloc(nr_files + 1, sizeof(struct ctl_table), in register_leaf_sysctl_tables() 1451 if (nr_files || !nr_dirs) { in register_leaf_sysctl_tables()
|
D | base.c | 2473 unsigned long nr_files, pos, i; in proc_map_files_readdir() local 2503 nr_files = 0; in proc_map_files_readdir() 2521 p = genradix_ptr_alloc(&fa, nr_files++, GFP_KERNEL); in proc_map_files_readdir() 2536 for (i = 0; i < nr_files; i++) { in proc_map_files_readdir()
|