namelen = req_capsule_get_size(info->mti_pill, &RMF_NAME,
RCL_CLIENT) - 1;
if (!info->mti_cross_ref) {
- /*
- * XXX: Check for "namelen == 0" is for getattr by fid
+ /*
+ * XXX: Check for "namelen == 0" is for getattr by fid
* (OBD_CONNECT_ATTRFID), otherwise do not allow empty name,
* that is the name must contain at least one character and
* the terminating '\0'
*/
if (namelen == 0) {
- reqbody = req_capsule_client_get(info->mti_pill,
+ reqbody = req_capsule_client_get(info->mti_pill,
&RMF_MDT_BODY);
LASSERT(fid_is_sane(&reqbody->fid2));
name = NULL;
} else {
lname = mdt_name(info->mti_env, (char *)name, namelen);
CDEBUG(D_INODE, "getattr with lock for "DFID"/%s, "
- "ldlm_rep = %p\n", PFID(mdt_object_fid(parent)),
+ "ldlm_rep = %p\n", PFID(mdt_object_fid(parent)),
name, ldlm_rep);
}
}
err_fini_site:
lu_site_fini(s);
err_free_site:
- OBD_FREE_PTR(s);
+ OBD_FREE_PTR(mite);
md_device_fini(&m->mdt_md_dev);
return (rc);