mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
bcache/md: Use raid stripe size
Now that we've got code for raid5/6 stripe awareness, bcache just needs to know about the stripes and when writing partial stripes is expensive - we probably don't want to enable this optimization for raid1 or 10, even though they have stripes. So add a flag to queue_limits. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
This commit is contained in:
parent
5f5837d2d6
commit
c78afc6261
4 changed files with 12 additions and 0 deletions
|
@ -291,6 +291,7 @@ struct queue_limits {
|
|||
unsigned char discard_misaligned;
|
||||
unsigned char cluster;
|
||||
unsigned char discard_zeroes_data;
|
||||
unsigned char raid_partial_stripes_expensive;
|
||||
};
|
||||
|
||||
struct request_queue {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue