From 0dbade0d3719a2ff8ee5aebf0a4cffa498de5470 Mon Sep 17 00:00:00 2001 From: huanghua Date: Fri, 1 Sep 2006 03:05:25 +0000 Subject: [PATCH] fix some small compile errors. --- lustre/mdd/mdd_handler.c | 2 +- lustre/mdd/mdd_internal.h | 4 ++-- lustre/mdd/mdd_orphans.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lustre/mdd/mdd_handler.c b/lustre/mdd/mdd_handler.c index f938790..c7756a5 100644 --- a/lustre/mdd/mdd_handler.c +++ b/lustre/mdd/mdd_handler.c @@ -2028,7 +2028,7 @@ static int mdd_close(const struct lu_context *ctxt, struct md_object *obj, mdd_obj = md2mdd_obj(obj); mdd_read_lock(ctxt, mdd_obj); - rc = __mdd_iattr_get(ctxt, obj, ma); + rc = __mdd_iattr_get(ctxt, mdd_obj, ma); if (rc) GOTO(out_locked, rc); diff --git a/lustre/mdd/mdd_internal.h b/lustre/mdd/mdd_internal.h index e4d8324..37e9f77 100644 --- a/lustre/mdd/mdd_internal.h +++ b/lustre/mdd/mdd_internal.h @@ -112,9 +112,9 @@ void mdd_read_unlock(const struct lu_context *ctxt, struct mdd_object *obj); void mdd_write_lock(const struct lu_context *ctxt, struct mdd_object *obj); void mdd_write_unlock(const struct lu_context *ctxt, struct mdd_object *obj); -int inline __mdd_orphan_add(const struct lu_context *, struct mdd_object *, +int __mdd_orphan_add(const struct lu_context *, struct mdd_object *, struct thandle *); -int inline __mdd_orphan_del(const struct lu_context *, struct mdd_object *, +int __mdd_orphan_del(const struct lu_context *, struct mdd_object *, struct thandle *); int orph_index_init(const struct lu_context *ctx, struct mdd_device *mdd); void orph_index_fini(const struct lu_context *ctx, struct mdd_device *mdd); diff --git a/lustre/mdd/mdd_orphans.c b/lustre/mdd/mdd_orphans.c index 7cd38d2..dc49514 100644 --- a/lustre/mdd/mdd_orphans.c +++ b/lustre/mdd/mdd_orphans.c @@ -147,7 +147,7 @@ void orph_index_fini(const struct lu_context *ctx, struct mdd_device *mdd) EXIT; } -int inline __mdd_orphan_add(const struct lu_context *ctx, +int __mdd_orphan_add(const struct lu_context *ctx, struct mdd_object *obj, struct thandle *th) { @@ -155,7 +155,7 @@ int inline __mdd_orphan_add(const struct lu_context *ctx, return orph_index_insert(ctx, obj, ORPH_OP_UNLINK, &offset, th); } -int inline __mdd_orphan_del(const struct lu_context *ctx, +int __mdd_orphan_del(const struct lu_context *ctx, struct mdd_object *obj, struct thandle *th) { -- 1.8.3.1