dm raid: more use of flag testing wrappers
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 19 May 2016 16:49:28 +0000 (18:49 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 13 Jun 2016 18:40:28 +0000 (14:40 -0400)
commitad51d7f1d1731f0fd62690edda706288bc965abb
tree2373469d2f7f79b21db96f74718090ec6e6c1da7
parentf090279eaff814a550b35bb51aac6b8541bddf97
dm raid: more use of flag testing wrappers

 - add _test_flags() function

 - use it to simplify rs_check_for_invalid_flags()

 - use _test_flag() throughout

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