Lines Matching refs:rv
2723 int rv; in errors_store() local
2725 rv = kstrtouint(buf, 10, &n); in errors_store()
2726 if (rv < 0) in errors_store()
2727 return rv; in errors_store()
3074 int rv = badblocks_store(&rdev->badblocks, page, len, 0); in bb_store() local
3078 return rv; in bb_store()
3125 ssize_t rv; in rdev_attr_store() local
3132 rv = mddev ? mddev_lock(mddev): -EBUSY; in rdev_attr_store()
3133 if (!rv) { in rdev_attr_store()
3135 rv = -EBUSY; in rdev_attr_store()
3137 rv = entry->store(rdev, page, length); in rdev_attr_store()
3140 return rv; in rdev_attr_store()
3429 ssize_t rv; in level_store() local
3439 rv = mddev_lock(mddev); in level_store()
3440 if (rv) in level_store()
3441 return rv; in level_store()
3449 rv = len; in level_store()
3452 rv = -EROFS; in level_store()
3462 rv = -EBUSY; in level_store()
3469 rv = -EINVAL; in level_store()
3491 rv = -EINVAL; in level_store()
3499 rv = len; in level_store()
3506 rv = -EINVAL; in level_store()
3527 rv = PTR_ERR(priv); in level_store()
3621 rv = len; in level_store()
3624 return rv; in level_store()
4046 int rv; in max_corrected_read_errors_store() local
4048 rv = kstrtouint(buf, 10, &n); in max_corrected_read_errors_store()
4049 if (rv < 0) in max_corrected_read_errors_store()
4050 return rv; in max_corrected_read_errors_store()
4413 int rv; in sync_min_store() local
4418 rv = kstrtouint(buf, 10, &min); in sync_min_store()
4419 if (rv < 0) in sync_min_store()
4420 return rv; in sync_min_store()
4442 int rv; in sync_max_store() local
4447 rv = kstrtouint(buf, 10, &max); in sync_max_store()
4448 if (rv < 0) in sync_max_store()
4449 return rv; in sync_max_store()
4895 ssize_t rv; in md_attr_show() local
4907 rv = entry->show(mddev, page); in md_attr_show()
4909 return rv; in md_attr_show()
4918 ssize_t rv; in md_attr_store() local
4931 rv = entry->store(mddev, page, length); in md_attr_store()
4933 return rv; in md_attr_store()
6432 int rv; in update_size() local
6460 rv = mddev->pers->resize(mddev, num_sectors); in update_size()
6461 if (!rv) in update_size()
6463 return rv; in update_size()
6468 int rv; in update_raid_disks() local
6498 rv = mddev->pers->check_reshape(mddev); in update_raid_disks()
6499 if (rv < 0) { in update_raid_disks()
6503 return rv; in update_raid_disks()
6516 int rv = 0; in update_array_info() local
6559 rv = mddev->pers->check_reshape(mddev); in update_array_info()
6560 if (rv) in update_array_info()
6562 return rv; in update_array_info()
6566 rv = update_size(mddev, (sector_t)info->size * 2); in update_array_info()
6569 rv = update_raid_disks(mddev, info->raid_disks); in update_array_info()
6573 rv = -EINVAL; in update_array_info()
6577 rv = -EBUSY; in update_array_info()
6584 rv = -EEXIST; in update_array_info()
6588 rv = -EINVAL; in update_array_info()
6599 rv = bitmap_load(mddev); in update_array_info()
6601 rv = PTR_ERR(bitmap); in update_array_info()
6602 if (rv) in update_array_info()
6608 rv = -ENOENT; in update_array_info()
6612 rv = -EINVAL; in update_array_info()
6622 return rv; in update_array_info()
6624 return rv; in update_array_info()
8530 int rv; in md_is_badblock() local
8546 rv = 0; in md_is_badblock()
8579 if (rv != -1 && BB_ACK(p[lo])) in md_is_badblock()
8580 rv = 1; in md_is_badblock()
8582 rv = -1; in md_is_badblock()
8593 return rv; in md_is_badblock()
8609 int rv = 1; in md_set_badblocks() local
8722 rv = 0; in md_set_badblocks()
8743 return rv; in md_set_badblocks()
8749 int rv; in rdev_set_badblocks() local
8754 rv = md_set_badblocks(&rdev->badblocks, in rdev_set_badblocks()
8756 if (rv) { in rdev_set_badblocks()
8763 return rv; in rdev_set_badblocks()
8778 int rv = 0; in md_clear_badblocks() local
8821 rv = -ENOSPC; in md_clear_badblocks()
8859 return rv; in md_clear_badblocks()