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

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
...@@ -156,11 +156,11 @@ static int lmv_intent_remote(struct obd_export *exp, void *lmm, ...@@ -156,11 +156,11 @@ static int lmv_intent_remote(struct obd_export *exp, void *lmm,
* IT_OPEN is intended to open (and create, possible) an object. Parent (pid) * IT_OPEN is intended to open (and create, possible) an object. Parent (pid)
* may be split dir. * 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, void *lmm, int lmmsize, struct lookup_intent *it,
int flags, struct ptlrpc_request **reqp, int flags, struct ptlrpc_request **reqp,
ldlm_blocking_callback cb_blocking, ldlm_blocking_callback cb_blocking,
__u64 extra_lock_flags) __u64 extra_lock_flags)
{ {
struct obd_device *obd = exp->exp_obd; struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv; struct lmv_obd *lmv = &obd->u.lmv;
...@@ -239,11 +239,12 @@ int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, ...@@ -239,11 +239,12 @@ int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data,
/* /*
* Handler for: getattr, lookup and revalidate cases. * 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,
void *lmm, int lmmsize, struct lookup_intent *it, struct md_op_data *op_data,
int flags, struct ptlrpc_request **reqp, void *lmm, int lmmsize, struct lookup_intent *it,
ldlm_blocking_callback cb_blocking, int flags, struct ptlrpc_request **reqp,
__u64 extra_lock_flags) ldlm_blocking_callback cb_blocking,
__u64 extra_lock_flags)
{ {
struct obd_device *obd = exp->exp_obd; struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv; struct lmv_obd *lmv = &obd->u.lmv;
......
...@@ -56,18 +56,6 @@ int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, ...@@ -56,18 +56,6 @@ int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data,
ldlm_blocking_callback cb_blocking, ldlm_blocking_callback cb_blocking,
__u64 extra_lock_flags); __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_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 lmv_obd *lmv, struct lu_fid *fid, u32 mds);
int lmv_fid_alloc(struct obd_export *exp, struct lu_fid *fid, int lmv_fid_alloc(struct obd_export *exp, struct lu_fid *fid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment