From: Jens Axboe Date: Mon, 4 May 2026 11:40:16 +0000 (-0600) Subject: io_uring/rsrc: bump struct io_mapped_ubuf length field to size_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca76b56a2a2acf9875e5cad68612085f25b463bb;p=thirdparty%2Fkernel%2Flinux.git io_uring/rsrc: bump struct io_mapped_ubuf length field to size_t 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 --- diff --git a/io_uring/fdinfo.c b/io_uring/fdinfo.c index c2d3e45544bb4..f0ff4bd01b6d1 100644 --- a/io_uring/fdinfo.c +++ b/io_uring/fdinfo.c @@ -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: \n", i); } diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index c0f8a18ec7674..98ae8ef51009d 100644 --- a/io_uring/rsrc.h +++ b/io_uring/rsrc.h @@ -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); };