提交 358855b2 编写于 作者: S Shraddha Barke 提交者: Greg Kroah-Hartman

Staging: lustre: mdc: Declare local functions as static

Declare mdc_get_lustre_md, mdc_free_lustre_md and
mdc_clear_open_replay_data as static since they are used only
in this particular file. Also remove corresponding declarations
from header files.
Signed-off-by: NShraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 54cc3794
......@@ -104,18 +104,10 @@ int mdc_open(struct obd_export *exp, u64 ino, int type, int flags,
struct obd_client_handle;
int mdc_get_lustre_md(struct obd_export *md_exp, struct ptlrpc_request *req,
struct obd_export *dt_exp, struct obd_export *lmv_exp,
struct lustre_md *md);
int mdc_free_lustre_md(struct obd_export *exp, struct lustre_md *md);
int mdc_set_open_replay_data(struct obd_export *exp,
struct obd_client_handle *och,
struct lookup_intent *it);
int mdc_clear_open_replay_data(struct obd_export *exp,
struct obd_client_handle *och);
void mdc_commit_open(struct ptlrpc_request *req);
void mdc_replay_open(struct ptlrpc_request *req);
......
......@@ -447,9 +447,11 @@ static int mdc_unpack_acl(struct ptlrpc_request *req, struct lustre_md *md)
#define mdc_unpack_acl(req, md) 0
#endif
int mdc_get_lustre_md(struct obd_export *exp, struct ptlrpc_request *req,
struct obd_export *dt_exp, struct obd_export *md_exp,
struct lustre_md *md)
static int mdc_get_lustre_md(struct obd_export *exp,
struct ptlrpc_request *req,
struct obd_export *dt_exp,
struct obd_export *md_exp,
struct lustre_md *md)
{
struct req_capsule *pill = &req->rq_pill;
int rc;
......@@ -573,7 +575,7 @@ int mdc_get_lustre_md(struct obd_export *exp, struct ptlrpc_request *req,
return rc;
}
int mdc_free_lustre_md(struct obd_export *exp, struct lustre_md *md)
static int mdc_free_lustre_md(struct obd_export *exp, struct lustre_md *md)
{
return 0;
}
......@@ -737,8 +739,8 @@ static void mdc_free_open(struct md_open_data *mod)
ptlrpc_request_committed(mod->mod_close_req, committed);
}
int mdc_clear_open_replay_data(struct obd_export *exp,
struct obd_client_handle *och)
static int mdc_clear_open_replay_data(struct obd_export *exp,
struct obd_client_handle *och)
{
struct md_open_data *mod = och->och_mod;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册