aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-06-08 14:53:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-08 12:39:48 -0700
commit2b692c2e9be1c41fd450db0bace2141e3ba8fa27 (patch)
tree11161b1afcfd27f6f8d705eb68d59c6eccad7138 /drivers/staging/lustre
parentlustre: lov: Drop lov_lock_handles structure (diff)
downloadlinux-dev-2b692c2e9be1c41fd450db0bace2141e3ba8fa27.tar.xz
linux-dev-2b692c2e9be1c41fd450db0bace2141e3ba8fa27.zip
lustre: lov: Drop unneeded set_oabufs and set_pga fields
The fields set_oabufs and set_pga fields in the lov_request_set structure are never set, so drop them. Drop also the corresponding test and free in lov_finish_set. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/lov/lov_internal.h2
-rw-r--r--drivers/staging/lustre/lustre/lov/lov_request.c5
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/lustre/lustre/lov/lov_internal.h b/drivers/staging/lustre/lustre/lov/lov_internal.h
index f52a90c8caf7..e4e0cfdfd8ea 100644
--- a/drivers/staging/lustre/lustre/lov/lov_internal.h
+++ b/drivers/staging/lustre/lustre/lov/lov_internal.h
@@ -102,8 +102,6 @@ struct lov_request_set {
struct llog_cookie *set_cookies;
int set_cookie_sent;
struct obd_trans_info *set_oti;
- u32 set_oabufs;
- struct brw_page *set_pga;
struct list_head set_list;
wait_queue_head_t set_waitq;
spinlock_t set_lock;
diff --git a/drivers/staging/lustre/lustre/lov/lov_request.c b/drivers/staging/lustre/lustre/lov/lov_request.c
index 7769f149af92..ada0a3cf1c0f 100644
--- a/drivers/staging/lustre/lustre/lov/lov_request.c
+++ b/drivers/staging/lustre/lustre/lov/lov_request.c
@@ -73,11 +73,6 @@ void lov_finish_set(struct lov_request_set *set)
kfree(req->rq_oi.oi_osfs);
kfree(req);
}
-
- if (set->set_pga) {
- int len = set->set_oabufs * sizeof(*set->set_pga);
- OBD_FREE_LARGE(set->set_pga, len);
- }
kfree(set);
}