diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-11-12 12:45:54 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-13 07:27:34 -0700 |
| commit | 94cd832916521d8d51b25b40691354c24831c655 (patch) | |
| tree | 1d2ba0270291f9a0c0c892ecd76be598f52ea308 /rust/kernel/alloc/kvec/errors.rs | |
| parent | e279bb4b4c4d012808fb21ff41183a2e76c26679 (diff) | |
io_uring: use size_add helpers for ring offsets
Use size_add / size_mul set of functions for rings_size() calculations.
It's more consistent with struct_size(), and errors are preserved across
a series of calculations, so intermediate result checks can be omitted.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
