]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
io_uring/rsrc: bump struct io_mapped_ubuf length field to size_t
authorJens Axboe <axboe@kernel.dk>
Mon, 4 May 2026 11:40:16 +0000 (05:40 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 May 2026 14:12:23 +0000 (08:12 -0600)
In preparation for supporting bigger individual buffers, bump the length
field to a full 8-bytes with size_t rather than an unsigned int.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/fdinfo.c
io_uring/rsrc.h

index c2d3e45544bb4ef4e6a3a6cda4393d9563382bc1..f0ff4bd01b6d19d1f10a4d88312d5bcfeea1759b 100644 (file)
@@ -223,7 +223,7 @@ static void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, struct seq_file *m)
                if (ctx->buf_table.nodes[i])
                        buf = ctx->buf_table.nodes[i]->buf;
                if (buf)
-                       seq_printf(m, "%5u: 0x%llx/%u\n", i, buf->ubuf, buf->len);
+                       seq_printf(m, "%5u: 0x%llx/%zu\n", i, buf->ubuf, buf->len);
                else
                        seq_printf(m, "%5u: <none>\n", i);
        }
index c0f8a18ec7674b915301b315cd3ee93331d0853e..98ae8ef51009dc5cb76c31b99f4772d90696edda 100644 (file)
@@ -34,14 +34,14 @@ enum {
 
 struct io_mapped_ubuf {
        u64             ubuf;
-       unsigned int    len;
+       size_t          len;
        unsigned int    nr_bvecs;
        unsigned int    folio_shift;
        refcount_t      refs;
-       void            (*release)(void *);
-       void            *priv;
        u8              flags;
        u8              dir;
+       void            (*release)(void *);
+       void            *priv;
        struct bio_vec  bvec[] __counted_by(nr_bvecs);
 };