diff --git a/lustre/mdc/mdc_internal.h b/lustre/mdc/mdc_internal.h index 233196b..869823f 100644 --- a/lustre/mdc/mdc_internal.h +++ b/lustre/mdc/mdc_internal.h @@ -110,6 +110,10 @@ static inline void mdc_init_rpc_lock(struct mdc_rpc_lock *lck) lck->rpcl_it = NULL; } +#ifdef FOR_TESTING_ONLY +#define mdc_get_rpc_lock(lck, it) do {} while (0) +#define mdc_put_rpc_lock(lck, it) do {} while (0) +#else static inline void mdc_get_rpc_lock(struct mdc_rpc_lock *lck, struct lookup_intent *it) { @@ -131,6 +135,7 @@ static inline void mdc_put_rpc_lock(struct mdc_rpc_lock *lck, } EXIT; } +#endif static inline int mdc_exp_is_2_0_server(struct obd_export *exp) { LASSERT(exp); patching file lustre/utils/ll_decode_filter_fid.c