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()
353 struct dlm_rsb *r; in find_rsb_root() local
361 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, 0, &r); in find_rsb_root()
364 name, len, 0, &r); in find_rsb_root()
368 return r; in find_rsb_root()
371 list_for_each_entry(r, &ls->ls_root_list, res_root_list) { in find_rsb_root()
372 if (len == r->res_length && !memcmp(name, r->res_name, len)) { in find_rsb_root()
375 r->res_name); in find_rsb_root()
376 return r; in find_rsb_root()
391 struct dlm_rsb *r; in dlm_copy_master_names() local
398 r = find_rsb_root(ls, inbuf, inlen); in dlm_copy_master_names()
399 if (!r) { in dlm_copy_master_names()
405 list = r->res_root_list.next; in dlm_copy_master_names()
411 r = list_entry(list, struct dlm_rsb, res_root_list); in dlm_copy_master_names()
412 if (r->res_nodeid) in dlm_copy_master_names()
415 dir_nodeid = dlm_dir_nodeid(r); in dlm_copy_master_names()
427 if (offset + sizeof(uint16_t)*2 + r->res_length > outlen) { in dlm_copy_master_names()
435 be_namelen = cpu_to_be16(r->res_length); in dlm_copy_master_names()
438 memcpy(outbuf + offset, r->res_name, r->res_length); in dlm_copy_master_names()
439 offset += r->res_length; in dlm_copy_master_names()