diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-18 15:06:40 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-19 03:38:26 +0200 |
commit | fc7f3a8d3a78503c4f3e108155fb9a233dc307a4 (patch) | |
tree | 9ee7f826dde1e54f3227e2b627a0cac5a997fed6 /io_uring/rsrc.h | |
parent | io_uring/rsrc: pass node to io_rsrc_put_work() (diff) | |
download | linux-fc7f3a8d3a78503c4f3e108155fb9a233dc307a4.tar.xz linux-fc7f3a8d3a78503c4f3e108155fb9a233dc307a4.zip |
io_uring/rsrc: devirtualise rsrc put callbacks
We only have two rsrc types, buffers and files, replace virtual
callbacks for putting resources down with a switch..case.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/02ca727bf8e5f7f820c2f404e95ae88c8f472930.1681822823.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rsrc.h')
-rw-r--r-- | io_uring/rsrc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index 232079363f6a..5d0733c4c08d 100644 --- a/io_uring/rsrc.h +++ b/io_uring/rsrc.h @@ -33,7 +33,7 @@ struct io_rsrc_data { u64 **tags; unsigned int nr; - rsrc_put_fn *do_put; + u16 rsrc_type; bool quiesce; }; |