Home
last modified time | relevance | path

Searched refs:hd (Results 1 – 3 of 3) sorted by relevance

/fs/dlm/
Dutil.c25 static void header_out(struct dlm_header *hd) in header_out() argument
27 hd->h_version = cpu_to_le32(hd->h_version); in header_out()
28 hd->h_lockspace = cpu_to_le32(hd->h_lockspace); in header_out()
29 hd->h_nodeid = cpu_to_le32(hd->h_nodeid); in header_out()
30 hd->h_length = cpu_to_le16(hd->h_length); in header_out()
33 static void header_in(struct dlm_header *hd) in header_in() argument
35 hd->h_version = le32_to_cpu(hd->h_version); in header_in()
36 hd->h_lockspace = le32_to_cpu(hd->h_lockspace); in header_in()
37 hd->h_nodeid = le32_to_cpu(hd->h_nodeid); in header_in()
38 hd->h_length = le16_to_cpu(hd->h_length); in header_in()
Dlock.c3851 struct dlm_header *hd = &p->header; in dlm_receive_buffer() local
3855 switch (hd->h_cmd) { in dlm_receive_buffer()
3865 log_print("invalid h_cmd %d from %u", hd->h_cmd, nodeid); in dlm_receive_buffer()
3869 if (hd->h_nodeid != nodeid) { in dlm_receive_buffer()
3871 hd->h_nodeid, nodeid, hd->h_lockspace); in dlm_receive_buffer()
3875 ls = dlm_find_lockspace_global(hd->h_lockspace); in dlm_receive_buffer()
3879 hd->h_lockspace, nodeid, hd->h_cmd, type); in dlm_receive_buffer()
3881 if (hd->h_cmd == DLM_RCOM && type == DLM_RCOM_STATUS) in dlm_receive_buffer()
3890 if (hd->h_cmd == DLM_MSG) in dlm_receive_buffer()
/fs/partitions/
Dcheck.c123 char *disk_name(struct gendisk *hd, int partno, char *buf) in disk_name() argument
126 snprintf(buf, BDEVNAME_SIZE, "%s", hd->disk_name); in disk_name()
127 else if (isdigit(hd->disk_name[strlen(hd->disk_name)-1])) in disk_name()
128 snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); in disk_name()
130 snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); in disk_name()
157 check_partition(struct gendisk *hd, struct block_device *bdev) in check_partition() argument
166 disk_name(hd, 0, state->name); in check_partition()
171 state->limit = disk_max_parts(hd); in check_partition()