mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user