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 <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2026-05-04 05:40:16 -06:00
parent df0a52537c
commit ca76b56a2a
2 changed files with 4 additions and 4 deletions

View 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);
}

View 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);
};