Commit c8b3c83e authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman
Browse files

Staging: lustre: lmv: Declare local functions as static



Declare functions lmv_intent_open and lmv_intent_lookup as static
since they are used only in this particular file. Also remove
corresponding declarations from header file.

Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1251604b
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ static int lmv_intent_remote(struct obd_export *exp, void *lmm,
 * IT_OPEN is intended to open (and create, possible) an object. Parent (pid)
 * may be split dir.
 */
int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data,
static int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data,
			   void *lmm, int lmmsize, struct lookup_intent *it,
			   int flags, struct ptlrpc_request **reqp,
			   ldlm_blocking_callback cb_blocking,
@@ -239,7 +239,8 @@ int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data,
/*
 * Handler for: getattr, lookup and revalidate cases.
 */
int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data,
static int lmv_intent_lookup(struct obd_export *exp,
			     struct md_op_data *op_data,
			     void *lmm, int lmmsize, struct lookup_intent *it,
			     int flags, struct ptlrpc_request **reqp,
			     ldlm_blocking_callback cb_blocking,
+0 −12
Original line number Diff line number Diff line
@@ -56,18 +56,6 @@ int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data,
		    ldlm_blocking_callback cb_blocking,
		    __u64 extra_lock_flags);

int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data,
		      void *lmm, int lmmsize, struct lookup_intent *it,
		      int flags, struct ptlrpc_request **reqp,
		      ldlm_blocking_callback cb_blocking,
		      __u64 extra_lock_flags);

int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data,
		    void *lmm, int lmmsize, struct lookup_intent *it,
		    int flags, struct ptlrpc_request **reqp,
		    ldlm_blocking_callback cb_blocking,
		    __u64 extra_lock_flags);

int lmv_fld_lookup(struct lmv_obd *lmv, const struct lu_fid *fid, u32 *mds);
int __lmv_fid_alloc(struct lmv_obd *lmv, struct lu_fid *fid, u32 mds);
int lmv_fid_alloc(struct obd_export *exp, struct lu_fid *fid,