summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-06-19 17:45:38 +0200
committerJens Axboe <axboe@kernel.dk>2024-06-20 06:53:15 -0600
commit7d4dec525f5fd555037486af4d02dd3682655ba1 (patch)
treecbc5eab07ade3b6da03cf282329909980d50ce9e /drivers/md/bcache
parent4cac3d3a712b5c76d462b29b73b9e58c0b6d9946 (diff)
downloadlinux-stable-7d4dec525f5fd555037486af4d02dd3682655ba1.tar.gz
linux-stable-7d4dec525f5fd555037486af4d02dd3682655ba1.tar.bz2
linux-stable-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/bcache')
-rw-r--r--drivers/md/bcache/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index baa364eedd00..283b2511c6d2 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -1416,8 +1416,8 @@ static int cached_dev_init(struct cached_dev *dc, unsigned int block_size)
}
if (bdev_io_opt(dc->bdev))
- dc->partial_stripes_expensive =
- q->limits.raid_partial_stripes_expensive;
+ dc->partial_stripes_expensive = q->limits.features &
+ BLK_FEAT_RAID_PARTIAL_STRIPES_EXPENSIVE;
ret = bcache_device_init(&dc->disk, block_size,
bdev_nr_sectors(dc->bdev) - dc->sb.data_offset,