From: kalpak Date: Sun, 7 Dec 2008 08:56:19 +0000 (+0000) Subject: b=17855 X-Git-Tag: v1_9_120~7 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=203940549b1173449f0b01f7081bad0cc4fb2744;p=fs%2Flustre-release.git b=17855 i=h.huang i=tappro mdo_{create,unlink} should use parent object's operations --- diff --git a/lustre/include/md_object.h b/lustre/include/md_object.h index 985550b..e554904 100644 --- a/lustre/include/md_object.h +++ b/lustre/include/md_object.h @@ -723,8 +723,8 @@ static inline int mdo_create(const struct lu_env *env, struct md_op_spec *spc, struct md_attr *at) { - LASSERT(c->mo_dir_ops->mdo_create); - return c->mo_dir_ops->mdo_create(env, p, lchild_name, c, spc, at); + LASSERT(p->mo_dir_ops->mdo_create); + return p->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(c->mo_dir_ops->mdo_unlink); - return c->mo_dir_ops->mdo_unlink(env, p, c, lname, ma); + LASSERT(p->mo_dir_ops->mdo_unlink); + return p->mo_dir_ops->mdo_unlink(env, p, c, lname, ma); } static inline int mdo_name_insert(const struct lu_env *env,