• Home
  • Raw
  • Download

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()
734 static int __sendmsg(struct md_cluster_info *cinfo, struct cluster_msg *cmsg) in __sendmsg() argument
739 cmsg->slot = cpu_to_le32(slot); in __sendmsg()
747 memcpy(cinfo->message_lockres->lksb.sb_lvbptr, (void *)cmsg, in __sendmsg()
785 static int sendmsg(struct md_cluster_info *cinfo, struct cluster_msg *cmsg, in sendmsg() argument
792 ret = __sendmsg(cinfo, cmsg); in sendmsg()
982 struct cluster_msg cmsg = {0}; in resync_bitmap() local
985 cmsg.type = cpu_to_le32(BITMAP_NEEDS_SYNC); in resync_bitmap()
986 err = sendmsg(cinfo, &cmsg, 1); in resync_bitmap()
1077 struct cluster_msg cmsg; in metadata_update_finish() local
1082 memset(&cmsg, 0, sizeof(cmsg)); in metadata_update_finish()
1083 cmsg.type = cpu_to_le32(METADATA_UPDATED); in metadata_update_finish()
1092 cmsg.raid_slot = cpu_to_le32(raid_slot); in metadata_update_finish()
1093 ret = __sendmsg(cinfo, &cmsg); in metadata_update_finish()
1111 struct cluster_msg cmsg = {0}; in update_bitmap_size() local
1114 cmsg.type = cpu_to_le32(BITMAP_RESIZE); in update_bitmap_size()
1115 cmsg.high = cpu_to_le64(size); in update_bitmap_size()
1116 ret = sendmsg(cinfo, &cmsg, 0); in update_bitmap_size()
1257 struct cluster_msg cmsg; in update_size() local
1268 memset(&cmsg, 0, sizeof(cmsg)); in update_size()
1269 cmsg.type = cpu_to_le32(METADATA_UPDATED); in update_size()
1276 cmsg.raid_slot = cpu_to_le32(raid_slot); in update_size()
1282 ret = __sendmsg(cinfo, &cmsg); in update_size()
1301 memset(&cmsg, 0, sizeof(cmsg)); in update_size()
1302 cmsg.type = cpu_to_le32(CHANGE_CAPACITY); in update_size()
1303 ret = __sendmsg(cinfo, &cmsg); in update_size()
1314 ret = __sendmsg(cinfo, &cmsg); in update_size()
1342 struct cluster_msg cmsg = {0}; in resync_info_update() local
1354 cmsg.type = cpu_to_le32(RESYNCING); in resync_info_update()
1355 cmsg.low = cpu_to_le64(lo); in resync_info_update()
1356 cmsg.high = cpu_to_le64(hi); in resync_info_update()
1363 return sendmsg(cinfo, &cmsg, 1); in resync_info_update()
1365 return sendmsg(cinfo, &cmsg, 0); in resync_info_update()
1409 struct cluster_msg cmsg; in add_new_disk() local
1414 memset(&cmsg, 0, sizeof(cmsg)); in add_new_disk()
1415 cmsg.type = cpu_to_le32(NEWDISK); in add_new_disk()
1416 memcpy(cmsg.uuid, uuid, 16); in add_new_disk()
1417 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in add_new_disk()
1420 ret = __sendmsg(cinfo, &cmsg); in add_new_disk()
1477 struct cluster_msg cmsg = {0}; in remove_disk() local
1479 cmsg.type = cpu_to_le32(REMOVE); in remove_disk()
1480 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in remove_disk()
1481 return sendmsg(cinfo, &cmsg, 1); in remove_disk()
1540 struct cluster_msg cmsg = {0}; in gather_bitmaps() local
1544 cmsg.type = cpu_to_le32(RE_ADD); in gather_bitmaps()
1545 cmsg.raid_slot = cpu_to_le32(rdev->desc_nr); in gather_bitmaps()
1546 err = sendmsg(cinfo, &cmsg, 1); in gather_bitmaps()