diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-04-27 13:11:23 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-04-27 17:08:44 -0400 |
commit | 7e0d574f2683a2346c978613a72ff07afc89b17a (patch) | |
tree | f1b83fd5151b6f364b01b25950b174914205acc4 /drivers/md/dm-ioctl.c | |
parent | b194679fac3067e785f432109c69759aa75b038c (diff) |
dm: introduce enum dm_queue_mode to cleanup related code
Introduce an enumeration type for the queue mode. This patch does
not change any functionality but makes the DM code easier to read.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r-- | drivers/md/dm-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index ddda8107aa7e..2d5d7064acbf 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -1260,7 +1260,7 @@ static int populate_table(struct dm_table *table, | |||
1260 | return dm_table_complete(table); | 1260 | return dm_table_complete(table); |
1261 | } | 1261 | } |
1262 | 1262 | ||
1263 | static bool is_valid_type(unsigned cur, unsigned new) | 1263 | static bool is_valid_type(enum dm_queue_mode cur, enum dm_queue_mode new) |
1264 | { | 1264 | { |
1265 | if (cur == new || | 1265 | if (cur == new || |
1266 | (cur == DM_TYPE_BIO_BASED && new == DM_TYPE_DAX_BIO_BASED)) | 1266 | (cur == DM_TYPE_BIO_BASED && new == DM_TYPE_DAX_BIO_BASED)) |