Unsigned integer is enough(4G * 4k = 16TB) to hold nr_pages in one io_mapped_ubuf. This way will save one word for io_mapped_ubuf. Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> --- io_uring/rsrc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index 2b8743645efc..774aca20326c 100644 --- a/io_uring/rsrc.h +++ b/io_uring/rsrc.h @@ -49,7 +49,7 @@ struct io_mapped_ubuf { u64 ubuf; u64 ubuf_end; unsigned int nr_bvecs; - unsigned long acct_pages; + unsigned int acct_pages; struct bio_vec bvec[]; }; -- 2.31.1