dm raid: use dm_arg_set API in constructor
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 19 May 2016 16:49:25 +0000 (18:49 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 13 Jun 2016 16:00:40 +0000 (12:00 -0400)
commit92c83d79b07ec1c53e0c74b8a7988799e00856db
treee2c1e2ffe9727ce5e0e0dee52ba8652f2ab6bafc
parent73c6f239a86271c17d77f826a0c657f3d393a51e
dm raid: use dm_arg_set API in constructor

- use dm_arg_set API in ctr and its callees parse_raid_params() and dev_parms()

- introduce _in_range() function to check a value is in a [ min, max ] range;
  this is to support more callers in parsing parameters etc. in the future

- correct comment on MAX_RAID_DEVICES

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c