diff options
author | Christoph Hellwig <hch@lst.de> | 2023-12-27 10:23:05 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-27 18:46:01 +0100 |
commit | d6b9f4e6f7fb589d8024a31cc4883d15d0c8def4 (patch) | |
tree | 51c3a3da55348c60f2c528fab2fb5caa4b3d616c /block/blk-sysfs.c | |
parent | loop: don't abuse BLK_DEF_MAX_SECTORS (diff) | |
download | linux-d6b9f4e6f7fb589d8024a31cc4883d15d0c8def4.tar.xz linux-d6b9f4e6f7fb589d8024a31cc4883d15d0c8def4.zip |
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-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index d5e669a401b0..40bab5975c56 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -241,7 +241,7 @@ queue_max_sectors_store(struct request_queue *q, const char *page, size_t count) if (max_sectors_kb == 0) { q->limits.max_user_sectors = 0; max_sectors_kb = min(max_hw_sectors_kb, - BLK_DEF_MAX_SECTORS >> 1); + BLK_DEF_MAX_SECTORS_CAP >> 1); } else { if (max_sectors_kb > max_hw_sectors_kb || max_sectors_kb < page_kb) |