mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 06:49:29 -04:00
Staging: lustre: osc: Declare local functions as static
Declare osc_real_create, osc_create and osc_cleanup as static since they are used only in this particular file. Also remove the corresponding declarations from header file. Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
66a9c9a8c2
commit
74d4ec1149
@@ -89,11 +89,6 @@ struct osc_cache_waiter {
|
||||
int ocw_rc;
|
||||
};
|
||||
|
||||
int osc_create(const struct lu_env *env, struct obd_export *exp,
|
||||
struct obdo *oa, struct lov_stripe_md **ea,
|
||||
struct obd_trans_info *oti);
|
||||
int osc_real_create(struct obd_export *exp, struct obdo *oa,
|
||||
struct lov_stripe_md **ea, struct obd_trans_info *oti);
|
||||
void osc_wake_cache_waiters(struct client_obd *cli);
|
||||
int osc_shrink_grant_to_target(struct client_obd *cli, __u64 target_bytes);
|
||||
void osc_update_next_shrink(struct client_obd *cli);
|
||||
@@ -137,7 +132,6 @@ int osc_lru_shrink(struct client_obd *cli, int target);
|
||||
|
||||
extern spinlock_t osc_ast_guard;
|
||||
|
||||
int osc_cleanup(struct obd_device *obd);
|
||||
int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg);
|
||||
|
||||
int lproc_osc_attach_seqstat(struct obd_device *dev);
|
||||
|
||||
@@ -104,7 +104,7 @@ struct osc_enqueue_args {
|
||||
static void osc_release_ppga(struct brw_page **ppga, u32 count);
|
||||
static int brw_interpret(const struct lu_env *env,
|
||||
struct ptlrpc_request *req, void *data, int rc);
|
||||
int osc_cleanup(struct obd_device *obd);
|
||||
static int osc_cleanup(struct obd_device *obd);
|
||||
|
||||
/* Pack OSC object metadata for disk storage (LE byte order). */
|
||||
static int osc_packmd(struct obd_export *exp, struct lov_mds_md **lmmp,
|
||||
@@ -431,8 +431,9 @@ static int osc_setattr_async(struct obd_export *exp, struct obd_info *oinfo,
|
||||
oinfo->oi_cb_up, oinfo, rqset);
|
||||
}
|
||||
|
||||
int osc_real_create(struct obd_export *exp, struct obdo *oa,
|
||||
struct lov_stripe_md **ea, struct obd_trans_info *oti)
|
||||
static int osc_real_create(struct obd_export *exp, struct obdo *oa,
|
||||
struct lov_stripe_md **ea,
|
||||
struct obd_trans_info *oti)
|
||||
{
|
||||
struct ptlrpc_request *req;
|
||||
struct ost_body *body;
|
||||
@@ -689,9 +690,9 @@ static int osc_can_send_destroy(struct client_obd *cli)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int osc_create(const struct lu_env *env, struct obd_export *exp,
|
||||
struct obdo *oa, struct lov_stripe_md **ea,
|
||||
struct obd_trans_info *oti)
|
||||
static int osc_create(const struct lu_env *env, struct obd_export *exp,
|
||||
struct obdo *oa, struct lov_stripe_md **ea,
|
||||
struct obd_trans_info *oti)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user