From: fanyong Date: Sat, 2 Sep 2006 14:45:10 +0000 (+0000) Subject: Fix the interface of mdo_link: X-Git-Tag: v1_8_0_110~486^2~1035 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=94f9e9e2da8b256eaa5a1107152f78d0b3c033b1;p=fs%2Flustre-release.git Fix the interface of mdo_link: 1) pass "md_attr *" down for file xtime changing. 2) make it like mdo_unlink and others. --- diff --git a/lustre/include/md_object.h b/lustre/include/md_object.h index 048919c..ab0605b 100644 --- a/lustre/include/md_object.h +++ b/lustre/include/md_object.h @@ -156,8 +156,8 @@ struct md_dir_operations { struct md_object *tobj, const char *tname, struct md_attr *); - int (*mdo_link)(const struct lu_context *ctxt, struct md_object *tobj, - struct md_object *sobj, const char *name); + int (*mdo_link)(const struct lu_context *, struct md_object *, + struct md_object *, const char *, struct md_attr *); int (*mdo_unlink)(const struct lu_context *, struct md_object *, struct md_object *, const char *, struct md_attr *); @@ -398,10 +398,11 @@ static inline int mdo_rename(const struct lu_context *cx, } static inline int mdo_link(const struct lu_context *cx, struct md_object *p, - struct md_object *s, const char *name) + struct md_object *s, const char *name, + struct md_attr *ma) { LASSERT(s->mo_dir_ops->mdo_link); - return s->mo_dir_ops->mdo_link(cx, p, s, name); + return s->mo_dir_ops->mdo_link(cx, p, s, name, ma); } static inline int mdo_unlink(const struct lu_context *cx, struct md_object *p,