Skip to content

Commit d6e2950

Browse files
isilenceaxboe
authored andcommitted
io_uring/notif: shrink account_pages to u32
->account_pages is the number of pages we account against the user derived from unsigned len, it definitely fits into unsigned, which saves some space in struct io_notif_data. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/19f2687fcb36daa74d86f4a27bfb3d35cffec318.1713185320.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 2e730d8 commit d6e2950

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

io_uring/notif.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
struct io_notif_data {
1414
struct file *file;
1515
struct ubuf_info uarg;
16-
unsigned long account_pages;
16+
17+
unsigned account_pages;
1718
bool zc_report;
1819
bool zc_used;
1920
bool zc_copied;

0 commit comments

Comments
 (0)