diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2024-04-15 14:50:13 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-15 16:10:49 +0200 |
commit | d6e295061f239bee48c9e49313f68042121e21c2 (patch) | |
tree | 3f43f01a730fe02005437198f2c67acea265ede2 /io_uring | |
parent | io_uring/notif: remove ctx var from io_notif_tw_complete (diff) | |
download | linux-d6e295061f239bee48c9e49313f68042121e21c2.tar.xz linux-d6e295061f239bee48c9e49313f68042121e21c2.zip |
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 <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/19f2687fcb36daa74d86f4a27bfb3d35cffec318.1713185320.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/notif.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_uring/notif.h b/io_uring/notif.h index 52e124a9957c..2e25a2fc77d1 100644 --- a/io_uring/notif.h +++ b/io_uring/notif.h @@ -13,7 +13,8 @@ struct io_notif_data { struct file *file; struct ubuf_info uarg; - unsigned long account_pages; + + unsigned account_pages; bool zc_report; bool zc_used; bool zc_copied; |