lustre: lov: Drop unneeded set_oabufs and set_pga fields
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 8 Jun 2015 12:53:19 +0000 (14:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 19:39:48 +0000 (12:39 -0700)
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>
drivers/staging/lustre/lustre/lov/lov_internal.h
drivers/staging/lustre/lustre/lov/lov_request.c

index f52a90c8caf7ba74d1630ea8b11a04d2c8f8c4e2..e4e0cfdfd8ea545028a7e126737aa10c404993da 100644 (file)
@@ -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;
index 7769f149af928b3777481ac806edb5885a3f74db..ada0a3cf1c0f1f35cfd3e4688a1c8ec3bfcd1f8d 100644 (file)
@@ -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);
 }