]> git.baikalelectronics.ru Git - kernel.git/commit
lustre: lov: Drop rq_buflen field
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 8 Jun 2015 12:53:20 +0000 (14:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 19:39:48 +0000 (12:39 -0700)
commit4dfc5709d6156663088a2e7b20b62c02c2ee2b5d
tree8d695cd1417cba0d0a5c2ecef41b45fb57a1e1fb
parent55bf59bf1d820e3e4b6f26b08be9e2ecf02b003a
lustre: lov: Drop rq_buflen field

The rq_buflen field of the lov_request structure is never initialized.  It
is only used in the free of req->rq_oi.oi_md in lov_finish_set.  But no
oi_md field is ever initialized to the result of calling OBD_ALLOC_LARGE.
So it seems that the call to OBD_FREE_LARGE in lov_finish_set and the
rq_buflen in the lov_request structure are simply not needed.

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