diff options
| author | Kent Overstreet <kmo@daterainc.com> | 2013-07-12 01:39:53 -0400 |
|---|---|---|
| committer | Kent Overstreet <kmo@daterainc.com> | 2014-01-08 16:05:09 -0500 |
| commit | c78afc6261b09f74abff8c0719b80692a4959768 (patch) | |
| tree | 4b3d5e421fad23e3bd0866a0b18c845acf297506 /include/linux | |
| parent | 5f5837d2d650db25b9153b91535e67a96b265f58 (diff) | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 02cb6f0ea71d..0375654adb28 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -291,6 +291,7 @@ struct queue_limits { | |||
| 291 | unsigned char discard_misaligned; | 291 | unsigned char discard_misaligned; |
| 292 | unsigned char cluster; | 292 | unsigned char cluster; |
| 293 | unsigned char discard_zeroes_data; | 293 | unsigned char discard_zeroes_data; |
| 294 | unsigned char raid_partial_stripes_expensive; | ||
| 294 | }; | 295 | }; |
| 295 | 296 | ||
| 296 | struct request_queue { | 297 | struct request_queue { |
