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

Staging: lustre: lov: Declare local functions as static

Declare functions lov_set_add_req, lov_set_finished, lov_update_set,
lov_check_and_wait_active and lov_update_statfs 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 4b520fef
...@@ -153,13 +153,8 @@ int lov_stripe_number(struct lov_stripe_md *lsm, u64 lov_off); ...@@ -153,13 +153,8 @@ int lov_stripe_number(struct lov_stripe_md *lsm, u64 lov_off);
#define LOV_USES_DEFAULT_STRIPE 1 #define LOV_USES_DEFAULT_STRIPE 1
/* lov_request.c */ /* lov_request.c */
void lov_set_add_req(struct lov_request *req, struct lov_request_set *set);
int lov_set_finished(struct lov_request_set *set, int idempotent);
void lov_update_set(struct lov_request_set *set,
struct lov_request *req, int rc);
int lov_update_common_set(struct lov_request_set *set, int lov_update_common_set(struct lov_request_set *set,
struct lov_request *req, int rc); struct lov_request *req, int rc);
int lov_check_and_wait_active(struct lov_obd *lov, int ost_idx);
int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo, int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo,
struct lov_request_set **reqset); struct lov_request_set **reqset);
int lov_fini_getattr_set(struct lov_request_set *set); int lov_fini_getattr_set(struct lov_request_set *set);
...@@ -176,8 +171,6 @@ int lov_update_setattr_set(struct lov_request_set *set, ...@@ -176,8 +171,6 @@ int lov_update_setattr_set(struct lov_request_set *set,
int lov_fini_setattr_set(struct lov_request_set *set); int lov_fini_setattr_set(struct lov_request_set *set);
int lov_prep_statfs_set(struct obd_device *obd, struct obd_info *oinfo, int lov_prep_statfs_set(struct obd_device *obd, struct obd_info *oinfo,
struct lov_request_set **reqset); struct lov_request_set **reqset);
void lov_update_statfs(struct obd_statfs *osfs, struct obd_statfs *lov_sfs,
int success);
int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs, int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs,
int success); int success);
int lov_fini_statfs_set(struct lov_request_set *set); int lov_fini_statfs_set(struct lov_request_set *set);
......
...@@ -74,7 +74,7 @@ void lov_finish_set(struct lov_request_set *set) ...@@ -74,7 +74,7 @@ void lov_finish_set(struct lov_request_set *set)
kfree(set); kfree(set);
} }
int lov_set_finished(struct lov_request_set *set, int idempotent) static int lov_set_finished(struct lov_request_set *set, int idempotent)
{ {
int completes = atomic_read(&set->set_completes); int completes = atomic_read(&set->set_completes);
...@@ -89,8 +89,8 @@ int lov_set_finished(struct lov_request_set *set, int idempotent) ...@@ -89,8 +89,8 @@ int lov_set_finished(struct lov_request_set *set, int idempotent)
return 0; return 0;
} }
void lov_update_set(struct lov_request_set *set, static void lov_update_set(struct lov_request_set *set,
struct lov_request *req, int rc) struct lov_request *req, int rc)
{ {
req->rq_complete = 1; req->rq_complete = 1;
req->rq_rc = rc; req->rq_rc = rc;
...@@ -118,7 +118,8 @@ int lov_update_common_set(struct lov_request_set *set, ...@@ -118,7 +118,8 @@ int lov_update_common_set(struct lov_request_set *set,
return rc; return rc;
} }
void lov_set_add_req(struct lov_request *req, struct lov_request_set *set) static void lov_set_add_req(struct lov_request *req,
struct lov_request_set *set)
{ {
list_add_tail(&req->rq_link, &set->set_list); list_add_tail(&req->rq_link, &set->set_list);
set->set_count++; set->set_count++;
...@@ -144,7 +145,7 @@ static int lov_check_set(struct lov_obd *lov, int idx) ...@@ -144,7 +145,7 @@ static int lov_check_set(struct lov_obd *lov, int idx)
* If the OSC has not yet had a chance to connect to the OST the first time, * If the OSC has not yet had a chance to connect to the OST the first time,
* wait once for it to connect instead of returning an error. * wait once for it to connect instead of returning an error.
*/ */
int lov_check_and_wait_active(struct lov_obd *lov, int ost_idx) static int lov_check_and_wait_active(struct lov_obd *lov, int ost_idx)
{ {
wait_queue_head_t waitq; wait_queue_head_t waitq;
struct l_wait_info lwi; struct l_wait_info lwi;
...@@ -591,8 +592,9 @@ int lov_fini_statfs_set(struct lov_request_set *set) ...@@ -591,8 +592,9 @@ int lov_fini_statfs_set(struct lov_request_set *set)
return rc; return rc;
} }
void lov_update_statfs(struct obd_statfs *osfs, struct obd_statfs *lov_sfs, static void lov_update_statfs(struct obd_statfs *osfs,
int success) struct obd_statfs *lov_sfs,
int success)
{ {
int shift = 0, quit = 0; int shift = 0, quit = 0;
__u64 tmp; __u64 tmp;
......
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