md: md_ioctl(): Fix misleading indentation.
Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: Neil Brown <neilb@suse.de>
This commit is contained in:
@@ -4973,14 +4973,12 @@ static int md_ioctl(struct inode *inode, struct file *file,
|
|||||||
* here and hit the 'default' below, so only disallow
|
* here and hit the 'default' below, so only disallow
|
||||||
* 'md' ioctls, and switch to rw mode if started auto-readonly.
|
* 'md' ioctls, and switch to rw mode if started auto-readonly.
|
||||||
*/
|
*/
|
||||||
if (_IOC_TYPE(cmd) == MD_MAJOR &&
|
if (_IOC_TYPE(cmd) == MD_MAJOR && mddev->ro && mddev->pers) {
|
||||||
mddev->ro && mddev->pers) {
|
|
||||||
if (mddev->ro == 2) {
|
if (mddev->ro == 2) {
|
||||||
mddev->ro = 0;
|
mddev->ro = 0;
|
||||||
sysfs_notify(&mddev->kobj, NULL, "array_state");
|
sysfs_notify(&mddev->kobj, NULL, "array_state");
|
||||||
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
|
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
|
||||||
md_wakeup_thread(mddev->thread);
|
md_wakeup_thread(mddev->thread);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
err = -EROFS;
|
err = -EROFS;
|
||||||
goto abort_unlock;
|
goto abort_unlock;
|
||||||
|
Reference in New Issue
Block a user