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, 18 Aug 2024 20:40:21 +0000 (14:40 -0600)
commit4a002505380161a30290c14787c343287c2f188c
tree7cd403cec4bfca226b3bb3ffc67ddf55152555da
parentd3ccff652f8e90dcd1bc9fed44174c11eefdd636
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