}
}
-/*Check whether it may delete the cobj under the pobj*/
+/* Check whether it may delete the cobj under the pobj. */
static int mdd_may_delete(const struct lu_env *env,
struct mdd_object *pobj, struct mdd_object *cobj,
int is_dir, int need_check)
*/
static int mdt_body_unpack(struct mdt_thread_info *info, __u32 flags)
{
+ struct lustre_capa *capa = NULL;
const struct mdt_body *body;
- struct lustre_capa *capa = NULL;
struct mdt_object *obj;
const struct lu_env *env;
struct req_capsule *pill;
return -EINVAL;
}
- if (req_capsule_get_size(pill, &RMF_CAPA1, RCL_CLIENT))
+ if (req_capsule_has_field(pill, &RMF_CAPA1, RCL_CLIENT))
capa = req_capsule_client_get(pill, &RMF_CAPA1);
+
obj = mdt_object_find(env, info->mti_mdt, &body->fid1, capa);
if (!IS_ERR(obj)) {
if ((flags & HABEO_CORPUS) &&