Loading drivers/md/md.c +110 −119 Original line number Diff line number Diff line Loading @@ -6347,8 +6347,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, * Commands dealing with the RAID driver but not any * particular array: */ switch (cmd) { switch (cmd) { case RAID_VERSION: err = get_version(argp); goto done; Loading Loading @@ -6411,10 +6410,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, goto abort; } switch (cmd) { case SET_ARRAY_INFO: { if (cmd == SET_ARRAY_INFO) { mdu_array_info_t info; if (!arg) memset(&info, 0, sizeof(info)); Loading Loading @@ -6451,10 +6447,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, " array info. %d\n", err); goto abort_unlock; } } goto done_unlock; default:; } /* Loading @@ -6473,8 +6466,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, /* * Commands even a read-only array can execute: */ switch (cmd) { switch (cmd) { case GET_BITMAP_FILE: err = get_bitmap_file(mddev, argp); goto done_unlock; Loading Loading @@ -6540,8 +6532,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, } } switch (cmd) { switch (cmd) { case ADD_NEW_DISK: { mdu_disk_info_t info; Loading Loading
drivers/md/md.c +110 −119 Original line number Diff line number Diff line Loading @@ -6347,8 +6347,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, * Commands dealing with the RAID driver but not any * particular array: */ switch (cmd) { switch (cmd) { case RAID_VERSION: err = get_version(argp); goto done; Loading Loading @@ -6411,10 +6410,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, goto abort; } switch (cmd) { case SET_ARRAY_INFO: { if (cmd == SET_ARRAY_INFO) { mdu_array_info_t info; if (!arg) memset(&info, 0, sizeof(info)); Loading Loading @@ -6451,10 +6447,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, " array info. %d\n", err); goto abort_unlock; } } goto done_unlock; default:; } /* Loading @@ -6473,8 +6466,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, /* * Commands even a read-only array can execute: */ switch (cmd) { switch (cmd) { case GET_BITMAP_FILE: err = get_bitmap_file(mddev, argp); goto done_unlock; Loading Loading @@ -6540,8 +6532,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode, } } switch (cmd) { switch (cmd) { case ADD_NEW_DISK: { mdu_disk_info_t info; Loading