diff options
| author | 2026-01-26 06:53:32 +0100 | |
|---|---|---|
| committer | 2026-01-28 05:16:39 -0700 | |
| commit | fa0bdd45d7e3703826ea75f5fe3359865d75c319 (patch) | |
| tree | 9631195c82427a61778bc56cced354bf26bc1b26 /include/rdma/ssh:/git@git.zx2c4.com/git: | |
| parent | rnbd-clt: fix refcount underflow in device unmap path (diff) | |
block: add a BIO_MAX_SIZE constant and use it
Currently the only constant for the maximum bio size is BIO_MAX_SECTORS,
which is in units of 512-byte sectors, but a lot of user need a byte
limit.
Add a BIO_MAX_SIZE constant, redefine BIO_MAX_SECTORS in terms of it, and
switch all bio-related uses of UINT_MAX for the maximum size to use the
symbolic names instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/rdma/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
