]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
There is no technical limitation in device mapper that would prevent the
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 24 Jul 2012 23:25:15 +0000 (09:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 24 Jul 2012 23:25:15 +0000 (09:25 +1000)
dm-stripe target from using a stripe size smaller than page size.

This patch removes the limit and makes stripe volumes portable across
architectures with different page size.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-stripe.c

index 9690daa11c83526bd7cdc8376cac7d2b7398b1ef..6a20e9ea0bfb0883f053c48e5e0c5d5558f01a74 100644 (file)
@@ -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;
        }