diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-09-03 05:54:56 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-30 20:32:33 -0600 |
commit | 738277adc81929b3e7c9b63fec6693868cc5f931 (patch) | |
tree | e9a68c8829116d65e1bb694caa26c0622cd84845 | |
parent | aa06165de863a09bceebef65ecaf19294b26fd2e (diff) |
io_uring: mark io_uring_fops/io_op_defs as __read_mostly
These structures are never written, move them appropriately.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | fs/io_uring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 546bc1fbf482..a924ab1cf15b 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -755,7 +755,7 @@ struct io_op_def { unsigned needs_fsize : 1; }; -static const struct io_op_def io_op_defs[] = { +static const struct io_op_def io_op_defs[] __read_mostly = { [IORING_OP_NOP] = {}, [IORING_OP_READV] = { .async_ctx = 1, @@ -950,7 +950,7 @@ static int io_setup_async_rw(struct io_kiocb *req, const struct iovec *iovec, static struct kmem_cache *req_cachep; -static const struct file_operations io_uring_fops; +static const struct file_operations io_uring_fops __read_mostly; struct sock *io_uring_get_socket(struct file *file) { |