io_uring: store reg buffer end instead of length
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:55 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:28:42 +0000 (15:28 -0600)
commitbfd988a435ecb9354955d53aff4118fe7e2f61b5
tree925e60d58054e6041d841acd06e2e5530061e068
parent591d1a7c18c4c6596d40e3e056895fecc21756b7
io_uring: store reg buffer end instead of length

It's a bit more convenient for us to store a registered buffer end
address instead of length, see struct io_mapped_ubuf, as it allow to not
recompute it every time.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/39164403fe92f1dc437af134adeec2423cdf9395.1617287883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c