Home
last modified time | relevance | path

Searched refs:file_table (Results 1 – 10 of 10) sorted by relevance

/linux/io_uring/
H A Dfiletable.c18 struct io_file_table *table = &ctx->file_table; in io_file_bitmap_get()
70 if (!ctx->file_table.data.nr) in io_install_fixed_file()
72 if (slot_index >= ctx->file_table.data.nr) in io_install_fixed_file()
79 if (!io_reset_rsrc_node(ctx, &ctx->file_table.data, slot_index)) in io_install_fixed_file()
80 io_file_bitmap_set(&ctx->file_table, slot_index); in io_install_fixed_file()
82 ctx->file_table.data.nodes[slot_index] = node;
130 if (unlikely(!ctx->file_table.data.nr)) in io_fixed_fd_remove()
132 if (offset >= ctx->file_table.data.nr) in io_fixed_fd_remove()
135 node = io_rsrc_node_lookup(&ctx->file_table.data, offset); in io_fixed_fd_remove()
138 io_reset_rsrc_node(ctx, &ctx->file_table in io_fixed_fd_remove()
[all...]
H A Dfdinfo.c205 seq_printf(m, "UserFiles:\t%u\n", ctx->file_table.data.nr); in __io_uring_show_fdinfo()
206 for (i = 0; i < ctx->file_table.data.nr; i++) { in __io_uring_show_fdinfo()
209 if (ctx->file_table.data.nodes[i]) in __io_uring_show_fdinfo()
210 f = io_slot_file(ctx->file_table.data.nodes[i]); in __io_uring_show_fdinfo()
H A Drsrc.c220 if (!ctx->file_table.data.nr) in __io_sqe_files_update()
222 if (up->offset + nr_args > ctx->file_table.data.nr) in __io_sqe_files_update()
241 if (io_reset_rsrc_node(ctx, &ctx->file_table.data, i)) in __io_sqe_files_update()
242 io_file_bitmap_clear(&ctx->file_table, i); in __io_sqe_files_update()
266 ctx->file_table.data.nodes[i] = node; in __io_sqe_files_update()
270 io_file_bitmap_set(&ctx->file_table, i); in __io_sqe_files_update()
437 if (!req->ctx->file_table.data.nr) in io_files_update_with_index_alloc()
518 if (!ctx->file_table.data.nr) in io_sqe_files_unregister()
521 io_free_file_tables(ctx, &ctx->file_table); in io_sqe_files_unregister()
534 if (ctx->file_table.data.nr) in io_sqe_files_register()
[all …]
H A Dcancel.c250 node = io_rsrc_node_lookup(&ctx->file_table.data, fd); in __io_sync_cancel()
H A Dregister.c1037 trace_io_uring_register(ctx, opcode, ctx->file_table.data.nr, in SYSCALL_DEFINE4()
H A Dio_uring.c1564 node = io_rsrc_node_lookup(&ctx->file_table.data, fd); in io_file_get_fixed()
/linux/fs/smb/server/
H A Dvfs_cache.c508 __ksmbd_close_fd(&work->sess->file_table, fp); in __put_fd_final()
533 ft = &work->sess->file_table; in ksmbd_close_fd()
577 return __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_foreign_fd()
582 struct ksmbd_file *fp = __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_fd_fast()
601 fp = __ksmbd_lookup_fd(&work->sess->file_table, id); in ksmbd_lookup_fd_slow()
762 ret = __open_id(&work->sess->file_table, fp, OPEN_ID_TYPE_VOLATILE_ID); in ksmbd_open_fd()
1027 int num = __close_file_table_ids(&work->sess->file_table, in ksmbd_close_tree_conn_fds()
1036 int num = __close_file_table_ids(&work->sess->file_table, in ksmbd_close_session_fds()
1118 __open_id(&work->sess->file_table, fp, OPEN_ID_TYPE_VOLATILE_ID); in ksmbd_reopen_durable_fd()
H A Dsmb2pdu.c3757 ksmbd_update_fstate(&work->sess->file_table, fp, FP_INITED); in smb2_open()
/linux/fs/smb/server/mgmt/
H A Duser_session.c390 ksmbd_destroy_file_table(&sess->file_table); in ksmbd_session_destroy()
621 ksmbd_destroy_file_table(&prev_sess->file_table); in destroy_previous_session()
670 if (ksmbd_init_file_table(&sess->file_table)) in __session_create()
/linux/include/linux/
H A Dio_uring_types.h338 struct io_file_table file_table; member