Skip to content
Snippets Groups Projects
Commit cccd15bd authored by kalpak's avatar kalpak
Browse files

b=17855
i=huanghua, pravin

Revert patch as this breaks CMD. CMD uses child operations
parent 134f1e46
No related branches found
No related tags found
No related merge requests found
......@@ -723,8 +723,8 @@ static inline int mdo_create(const struct lu_env *env,
struct md_op_spec *spc,
struct md_attr *at)
{
LASSERT(p->mo_dir_ops->mdo_create);
return p->mo_dir_ops->mdo_create(env, p, lchild_name, c, spc, at);
LASSERT(c->mo_dir_ops->mdo_create);
return c->mo_dir_ops->mdo_create(env, p, lchild_name, c, spc, at);
}
static inline int mdo_create_data(const struct lu_env *env,
......@@ -776,8 +776,8 @@ static inline int mdo_unlink(const struct lu_env *env,
const struct lu_name *lname,
struct md_attr *ma)
{
LASSERT(p->mo_dir_ops->mdo_unlink);
return p->mo_dir_ops->mdo_unlink(env, p, c, lname, ma);
LASSERT(c->mo_dir_ops->mdo_unlink);
return c->mo_dir_ops->mdo_unlink(env, p, c, lname, ma);
}
static inline int mdo_name_insert(const struct lu_env *env,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment