From a083ae1559f96a616877fd5e33c56bc48bcb6363 Mon Sep 17 00:00:00 2001 From: tappro Date: Wed, 7 Jun 2006 13:14:40 +0000 Subject: [PATCH] remove attr from name_insert/remove() operations --- lustre/include/md_object.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lustre/include/md_object.h b/lustre/include/md_object.h index 5918edb..b007ce1 100644 --- a/lustre/include/md_object.h +++ b/lustre/include/md_object.h @@ -99,10 +99,9 @@ struct md_dir_operations { /* partial ops for cross-ref case */ int (*mdo_name_insert)(const struct lu_context *, struct md_object *, - const char *, const struct lu_fid *, - struct lu_attr *); + const char *, const struct lu_fid *); int (*mdo_name_remove)(const struct lu_context *, struct md_object *, - const char *, struct lu_attr *); + const char *); int (*mdo_rename_tgt)(const struct lu_context *, struct md_object *, struct md_object *, struct md_object *, const char *); @@ -255,19 +254,18 @@ static inline int mdo_unlink(const struct lu_context *cx, struct md_object *p, static inline int mdo_name_insert(const struct lu_context *cx, struct md_object *p, - const char *name, const struct lu_fid *f, - struct lu_attr *at) + const char *name, const struct lu_fid *f) { LASSERT(p->mo_dir_ops->mdo_name_insert); - return p->mo_dir_ops->mdo_name_insert(cx, p, name, f, at); + return p->mo_dir_ops->mdo_name_insert(cx, p, name, f); } static inline int mdo_name_remove(const struct lu_context *cx, struct md_object *p, - const char *name, struct lu_attr *at) + const char *name) { LASSERT(p->mo_dir_ops->mdo_name_remove); - return p->mo_dir_ops->mdo_name_remove(cx, p, name, at); + return p->mo_dir_ops->mdo_name_remove(cx, p, name); } static inline int mdo_rename_tgt(const struct lu_context *cx, -- 1.8.3.1