https://github.com/torvalds/linux
Revision 5f7136db82996089cdfb2939c7664b29e9da141d authored by Matthew Wilcox (Oracle) on 29 January 2021, 04:38:57 UTC, committed by Jens Axboe on 26 February 2021, 22:49:51 UTC
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: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 94d4bff
History
Tip revision: 5f7136db82996089cdfb2939c7664b29e9da141d authored by Matthew Wilcox (Oracle) on 29 January 2021, 04:38:57 UTC
block: Add bio_max_segs
Tip revision: 5f7136d
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.3 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.8 KB
.mailmap -rw-r--r-- 18.5 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 98.4 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 573.0 KB
Makefile -rw-r--r-- 63.1 KB
README -rw-r--r-- 727 bytes

README

back to top