MD: replace special disk roles with macros
authorSong Liu <songliubraving@fb.com>
Thu, 13 Aug 2015 21:31:54 +0000 (14:31 -0700)
committerNeilBrown <neilb@suse.com>
Sat, 24 Oct 2015 06:16:18 +0000 (17:16 +1100)
commitc4d4c91b44d8309082127893221a1971a27c50ca
treed745d1eb415f1dff77c0de54b5a63a4494ba3f76
parent28c1b9fdf4562b52fe104384b16238c39c8a8d40
MD: replace special disk roles with macros

Add the following two macros for special roles: spare and faulty

MD_DISK_ROLE_SPARE 0xffff
MD_DISK_ROLE_FAULTY 0xfffe

Add MD_DISK_ROLE_MAX 0xff00 as the maximal possible regular role,
and minimal value of special role.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md.c
include/uapi/linux/raid/md_p.h