Lines Matching refs:r
115 int dlm_dir_nodeid(struct dlm_rsb *r) in dlm_dir_nodeid() argument
117 return dlm_hash2nodeid(r->res_ls, r->res_hash); in dlm_dir_nodeid()
354 struct dlm_rsb *r; in find_rsb_root() local
357 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in find_rsb_root()
358 if (len == r->res_length && !memcmp(name, r->res_name, len)) { in find_rsb_root()
360 return r; in find_rsb_root()
375 struct dlm_rsb *r; in dlm_copy_master_names() local
382 r = find_rsb_root(ls, inbuf, inlen); in dlm_copy_master_names()
383 if (!r) { in dlm_copy_master_names()
389 list = r->res_root_list.next; in dlm_copy_master_names()
395 r = list_entry(list, struct dlm_rsb, res_root_list); in dlm_copy_master_names()
396 if (r->res_nodeid) in dlm_copy_master_names()
399 dir_nodeid = dlm_dir_nodeid(r); in dlm_copy_master_names()
411 if (offset + sizeof(uint16_t)*2 + r->res_length > outlen) { in dlm_copy_master_names()
419 be_namelen = cpu_to_be16(r->res_length); in dlm_copy_master_names()
422 memcpy(outbuf + offset, r->res_name, r->res_length); in dlm_copy_master_names()
423 offset += r->res_length; in dlm_copy_master_names()