Lines Matching refs:cmsg

504 static void process_add_new_disk(struct mddev *mddev, struct cluster_msg *cmsg)  in process_add_new_disk()  argument
514 sprintf(disk_uuid + len, "%pU", cmsg->uuid); in process_add_new_disk()
515 snprintf(raid_slot, 16, "RAID_DISK=%d", le32_to_cpu(cmsg->raid_slot)); in process_add_new_disk()
737 static int __sendmsg(struct md_cluster_info *cinfo, struct cluster_msg *cmsg) in __sendmsg() argument
742 cmsg->slot = cpu_to_le32(slot); in __sendmsg()
750 memcpy(cinfo->message_lockres->lksb.sb_lvbptr, (void *)cmsg, in __sendmsg()
788 static int sendmsg(struct md_cluster_info *cinfo, struct cluster_msg *cmsg, in sendmsg() argument
795 ret = __sendmsg(cinfo, cmsg); in sendmsg()
986 struct cluster_msg cmsg = {0}; in resync_bitmap() local
989 cmsg.type = cpu_to_le32(BITMAP_NEEDS_SYNC); in resync_bitmap()
990 err = sendmsg(cinfo, &cmsg, 1); in resync_bitmap()
1081 struct cluster_msg cmsg; in metadata_update_finish() local
1086 memset(&cmsg, 0, sizeof(cmsg)); in metadata_update_finish()
1087 cmsg.type = cpu_to_le32(METADATA_UPDATED); in metadata_update_finish()
1096 cmsg.raid_slot = cpu_to_le32(raid_slot); in metadata_update_finish()
1097 ret = __sendmsg(cinfo, &cmsg); in metadata_update_finish()
1115 struct cluster_msg cmsg = {0}; in update_bitmap_size() local
1118 cmsg.type = cpu_to_le32(BITMAP_RESIZE); in update_bitmap_size()
1119 cmsg.high = cpu_to_le64(size); in update_bitmap_size()
1120 ret = sendmsg(cinfo, &cmsg, 0); in update_bitmap_size()
1261 struct cluster_msg cmsg; in update_size() local
1272 memset(&cmsg, 0, sizeof(cmsg)); in update_size()
1273 cmsg.type = cpu_to_le32(METADATA_UPDATED); in update_size()
1280 cmsg.raid_slot = cpu_to_le32(raid_slot); in update_size()
1286 ret = __sendmsg(cinfo, &cmsg); in update_size()
1305 memset(&cmsg, 0, sizeof(cmsg)); in update_size()
1306 cmsg.type = cpu_to_le32(CHANGE_CAPACITY); in update_size()
1307 ret = __sendmsg(cinfo, &cmsg); in update_size()
1315 ret = __sendmsg(cinfo, &cmsg); in update_size()
1343 struct cluster_msg cmsg = {0}; in resync_info_update() local
1355 cmsg.type = cpu_to_le32(RESYNCING); in resync_info_update()
1356 cmsg.low = cpu_to_le64(lo); in resync_info_update()
1357 cmsg.high = cpu_to_le64(hi); in resync_info_update()
1364 return sendmsg(cinfo, &cmsg, 1); in resync_info_update()
1366 return sendmsg(cinfo, &cmsg, 0); in resync_info_update()
1410 struct cluster_msg cmsg; in add_new_disk() local
1415 memset(&cmsg, 0, sizeof(cmsg)); in add_new_disk()
1416 cmsg.type = cpu_to_le32(NEWDISK); in add_new_disk()
1417 memcpy(cmsg.uuid, uuid, 16); in add_new_disk()
1418 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in add_new_disk()
1421 ret = __sendmsg(cinfo, &cmsg); in add_new_disk()
1478 struct cluster_msg cmsg = {0}; in remove_disk() local
1480 cmsg.type = cpu_to_le32(REMOVE); in remove_disk()
1481 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in remove_disk()
1482 return sendmsg(cinfo, &cmsg, 1); in remove_disk()
1541 struct cluster_msg cmsg = {0}; in gather_bitmaps() local
1545 cmsg.type = cpu_to_le32(RE_ADD); in gather_bitmaps()
1546 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in gather_bitmaps()
1547 err = sendmsg(cinfo, &cmsg, 1); in gather_bitmaps()