]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/rsrc: store folio shift and mask into imu
authorChenliang Li <cliang01.li@samsung.com>
Wed, 31 Jul 2024 09:01:32 +0000 (17:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Aug 2024 14:27:01 +0000 (08:27 -0600)
commit3d6106aee4732a01a275c59ec94d05302d931c4b
treee306a24edf88454233b09f03e1c57679785d7ed9
parentd843634a95a66237f88fa6affa9203c9ee503244
io_uring/rsrc: store folio shift and mask into imu

Store the folio shift and folio mask into imu struct and use it in
iov_iter adjust, as we will have non PAGE_SIZE'd chunks if a
multi-hugepage buffer get coalesced.

Signed-off-by: Chenliang Li <cliang01.li@samsung.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20240731090133.4106-2-cliang01.li@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c
io_uring/rsrc.h