]> git.baikalelectronics.ru Git - kernel.git/commit
md: change the initialization value for a spare device spot to MD_DISK_ROLE_SPARE
authorLidong Zhong <lzhong@suse.com>
Mon, 12 Jun 2017 02:45:55 +0000 (10:45 +0800)
committerShaohua Li <shli@fb.com>
Fri, 16 Jun 2017 19:04:09 +0000 (12:04 -0700)
commit4cbabb58ded14234e151c5eaa2ff27b290f5fc69
treeef9669ec976e9687f62cebeb4e1113060e3a4cce
parent95076372ebf7972d098ca4209dfecd65aaf6d3c5
md: change the initialization value for a spare device spot to MD_DISK_ROLE_SPARE

The value for spare spot of sb->dev_roles is changed from
MD_DISK_ROLE_FAULTY to MD_DISK_ROLE_SPARE to keep align
with the value when the superblock is firstly created in
userspace.

Signed-off-by: Lidong Zhong <lzhong@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c