diff options
author | Christoph Hellwig <hch@lst.de> | 2024-06-19 17:45:38 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-20 06:53:15 -0600 |
commit | 7d4dec525f5fd555037486af4d02dd3682655ba1 (patch) | |
tree | cbc5eab07ade3b6da03cf282329909980d50ce9e /drivers/md/raid5.c | |
parent | 4cac3d3a712b5c76d462b29b73b9e58c0b6d9946 (diff) | |
download | linux-7d4dec525f5fd555037486af4d02dd3682655ba1.tar.gz linux-7d4dec525f5fd555037486af4d02dd3682655ba1.tar.bz2 linux-7d4dec525f5fd555037486af4d02dd3682655ba1.zip |
block: move the raid_partial_stripes_expensive flag into the features field
Move the raid_partial_stripes_expensive flags into the features field to
reclaim a little bit of space.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20240619154623.450048-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index e875763d6991..72f91eaa3201 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -7707,7 +7707,7 @@ static int raid5_set_limits(struct mddev *mddev) blk_set_stacking_limits(&lim); lim.io_min = mddev->chunk_sectors << 9; lim.io_opt = lim.io_min * (conf->raid_disks - conf->max_degraded); - lim.raid_partial_stripes_expensive = 1; + lim.features |= BLK_FEAT_RAID_PARTIAL_STRIPES_EXPENSIVE; lim.discard_granularity = stripe; lim.max_write_zeroes_sectors = 0; mddev_stack_rdev_limits(mddev, &lim, 0); |