From: huanghua Date: Fri, 1 Sep 2006 03:05:25 +0000 (+0000) Subject: fix some small compile errors. X-Git-Tag: v1_8_0_110~486^2~1044 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0dbade0d3719a2ff8ee5aebf0a4cffa498de5470;p=fs%2Flustre-release.git fix some small compile errors. --- 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) {