diff options
author | Christoph Hellwig <hch@lst.de> | 2023-12-27 09:23:05 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-27 10:46:01 -0700 |
commit | d6b9f4e6f7fb589d8024a31cc4883d15d0c8def4 (patch) | |
tree | 51c3a3da55348c60f2c528fab2fb5caa4b3d616c /block/blk-settings.c | |
parent | 3d77976c3a8586ab1fb6845e2061588b7d04934f (diff) |
block: rename and document BLK_DEF_MAX_SECTORS
Give BLK_DEF_MAX_SECTORS a _CAP postfix and document what it is used for.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231227092305.279567-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-settings.c')
-rw-r--r-- | block/blk-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index 33b3f767b81e..ba6e0e97118c 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -139,7 +139,7 @@ void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_secto if (limits->max_user_sectors) max_sectors = min(max_sectors, limits->max_user_sectors); else - max_sectors = min(max_sectors, BLK_DEF_MAX_SECTORS); + max_sectors = min(max_sectors, BLK_DEF_MAX_SECTORS_CAP); max_sectors = round_down(max_sectors, limits->logical_block_size >> SECTOR_SHIFT); |