Commit 38c9505e authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Chromeos LUCI
Browse files

FROMGIT: block: Add bio_max_segs



It's often inconvenient to use BIO_MAX_PAGES due to min() requiring the
sign to be the same.  Introduce bio_max_segs() and change BIO_MAX_PAGES to
be unsigned to make it easier for the users.

Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

BUG=b:273658215
TEST=`tast run $DUT arc.Boot.vm`
TEST=`tast run $DUT arc.Playstore.vm`

(cherry picked from commit 610664e2
 https://android.googlesource.com/kernel/common

 android13-5.10)

Change-Id: I0d70e3b46b9f97dc4db8b67a4138d6613e07d5f9
Signed-off-by: default avatarRyuichiro Chiba <chibar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/4444989


Reviewed-by: default avatarSuleiman Souhlal <suleiman@chromium.org>
Reviewed-by: default avatarSean Paul <sean@poorly.run>
parent 30753182
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment