From: tappro Date: Mon, 28 Aug 2006 21:14:53 +0000 (+0000) Subject: use lower case for function name X-Git-Tag: v1_8_0_110~486^2~1072 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ebc5af9c3299a890b39ba177dad16144dedbe064;p=fs%2Flustre-release.git use lower case for function name --- diff --git a/lustre/mdt/mdt_internal.h b/lustre/mdt/mdt_internal.h index 2380428..7613f70 100644 --- a/lustre/mdt/mdt_internal.h +++ b/lustre/mdt/mdt_internal.h @@ -397,7 +397,7 @@ void mdt_dump_lmm(int level, struct lov_mds_md *lmm); extern struct lu_context_key mdt_thread_key; /* debug issues helper starts here*/ -static inline void MDT_FAIL_WRITE(const struct lu_context *ctx, +static inline void mdt_fail_write(const struct lu_context *ctx, const struct dt_device *dd, int id) { if (OBD_FAIL_CHECK(id)) { diff --git a/lustre/mdt/mdt_reint.c b/lustre/mdt/mdt_reint.c index 558db93..2140878 100644 --- a/lustre/mdt/mdt_reint.c +++ b/lustre/mdt/mdt_reint.c @@ -64,7 +64,7 @@ static int mdt_md_create(struct mdt_thread_info *info) struct md_object *next = mdt_object_child(parent); ma->ma_need = MA_INODE; - MDT_FAIL_WRITE(info->mti_ctxt, info->mti_mdt->mdt_bottom, + mdt_fail_write(info->mti_ctxt, info->mti_mdt->mdt_bottom, OBD_FAIL_MDS_REINT_CREATE_WRITE); rc = mdo_create(info->mti_ctxt, next, rr->rr_name, @@ -163,7 +163,7 @@ static int mdt_reint_setattr(struct mdt_thread_info *info) GOTO(out_unlock, rc = -ENOENT); /* all attrs are packed into mti_attr in unpack_setattr */ - MDT_FAIL_WRITE(info->mti_ctxt, info->mti_mdt->mdt_bottom, + mdt_fail_write(info->mti_ctxt, info->mti_mdt->mdt_bottom, OBD_FAIL_MDS_REINT_SETATTR_WRITE); rc = mo_attr_set(info->mti_ctxt, next, &info->mti_attr); @@ -288,7 +288,7 @@ static int mdt_reint_unlink(struct mdt_thread_info *info) /* step 4: delete it */ - MDT_FAIL_WRITE(info->mti_ctxt, info->mti_mdt->mdt_bottom, + mdt_fail_write(info->mti_ctxt, info->mti_mdt->mdt_bottom, OBD_FAIL_MDS_REINT_UNLINK_WRITE); ma->ma_lmm = req_capsule_server_get(&info->mti_pill, &RMF_MDT_MD); @@ -367,7 +367,7 @@ static int mdt_reint_link(struct mdt_thread_info *info) /* step 4: link it */ - MDT_FAIL_WRITE(info->mti_ctxt, info->mti_mdt->mdt_bottom, + mdt_fail_write(info->mti_ctxt, info->mti_mdt->mdt_bottom, OBD_FAIL_MDS_REINT_LINK_WRITE); rc = mdo_link(info->mti_ctxt, mdt_object_child(mp), @@ -563,7 +563,7 @@ static int mdt_reint_rename(struct mdt_thread_info *info) ma->ma_need = MA_INODE | MA_LOV | MA_COOKIE; - MDT_FAIL_WRITE(info->mti_ctxt, info->mti_mdt->mdt_bottom, + mdt_fail_write(info->mti_ctxt, info->mti_mdt->mdt_bottom, OBD_FAIL_MDS_REINT_RENAME_WRITE); rc = mdo_rename(info->mti_ctxt, mdt_object_child(msrcdir), diff --git a/lustre/mdt/mdt_xattr.c b/lustre/mdt/mdt_xattr.c index 388d8e9..c8a7b70 100644 --- a/lustre/mdt/mdt_xattr.c +++ b/lustre/mdt/mdt_xattr.c @@ -225,7 +225,7 @@ int mdt_setxattr(struct mdt_thread_info *info) if (body->flags & XATTR_CREATE) flags |= LU_XATTR_CREATE; - MDT_FAIL_WRITE(ctx, info->mti_mdt->mdt_bottom, + mdt_fail_write(ctx, info->mti_mdt->mdt_bottom, OBD_FAIL_MDS_SETXATTR_WRITE); rc = mo_xattr_set(ctx, child, xattr,