diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:55:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:55:11 -0400 |
commit | c472273f863c80b87e53356256c5466df24328f0 (patch) | |
tree | 988b67a44e8ecd49d417a7e3cbdffa057251a28f /drivers/md/raid10.c | |
parent | 36ac1d2f323f8bf8bc10c25b88f617657720e241 (diff) | |
parent | 97ce0a7f9caf9d715cee815a016ee21575f71c95 (diff) |
Merge branch 'for-linus' of git://neil.brown.name/md
* 'for-linus' of git://neil.brown.name/md:
md: fix input truncation in safe_delay_store()
md: check for memory allocation failure in faulty personality
md: build failure due to missing delay.h
md: Relax minimum size restrictions on chunk_size.
md: remove space after function name in declaration and call.
md: Remove unnecessary #includes, #defines, and function declarations.
md: Convert remaining 1k representations in linear.c to sectors.
md: linear.c: Make two local variables sector-based.
md: linear: Represent dev_info->size and dev_info->offset in sectors.
md: linear.c: Remove broken debug code.
md: linear.c: Remove pointless initialization of curr_offset.
md: linear.c: Fix typo in comment.
md: Don't try to set an array to 'read-auto' if it is already in that state.
md: Allow metadata_version to be updated for externally managed metadata.
md: Fix rdev_size_store with size == 0
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 8bdc9bfc2887..da5129a24b18 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -19,6 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include "dm-bio-list.h" | 21 | #include "dm-bio-list.h" |
22 | #include <linux/delay.h> | ||
22 | #include <linux/raid/raid10.h> | 23 | #include <linux/raid/raid10.h> |
23 | #include <linux/raid/bitmap.h> | 24 | #include <linux/raid/bitmap.h> |
24 | 25 | ||
@@ -2028,8 +2029,9 @@ static int run(mddev_t *mddev) | |||
2028 | int nc, fc, fo; | 2029 | int nc, fc, fo; |
2029 | sector_t stride, size; | 2030 | sector_t stride, size; |
2030 | 2031 | ||
2031 | if (mddev->chunk_size == 0) { | 2032 | if (mddev->chunk_size < PAGE_SIZE) { |
2032 | printk(KERN_ERR "md/raid10: non-zero chunk size required.\n"); | 2033 | printk(KERN_ERR "md/raid10: chunk size must be " |
2034 | "at least PAGE_SIZE(%ld).\n", PAGE_SIZE); | ||
2033 | return -EINVAL; | 2035 | return -EINVAL; |
2034 | } | 2036 | } |
2035 | 2037 | ||