projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dm stripe: remove minimum stripe size
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
md
/
dm-stripe.c
diff --git
a/drivers/md/dm-stripe.c
b/drivers/md/dm-stripe.c
index 9690daa11c83526bd7cdc8376cac7d2b7398b1ef..6a20e9ea0bfb0883f053c48e5e0c5d5558f01a74 100644
(file)
--- a/
drivers/md/dm-stripe.c
+++ b/
drivers/md/dm-stripe.c
@@
-109,8
+109,7
@@
static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
return -EINVAL;
}
- if (kstrtouint(argv[1], 10, &chunk_size) ||
- (chunk_size < (PAGE_SIZE >> SECTOR_SHIFT))) {
+ if (kstrtouint(argv[1], 10, &chunk_size) || !chunk_size) {
ti->error = "Invalid chunk_size";
return -EINVAL;
}