io_uring/notif: shrink account_pages to u32
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Apr 2024 12:50:13 +0000 (13:50 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:49 +0000 (08:10 -0600)
->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>
io_uring/notif.h

index 52e124a9957cc98d7fbf8637f1d59e6a035ab228..2e25a2fc77d1d896f459b2d03de59c7adb43fc53 100644 (file)
@@ -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;