]> 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)
commit692cc3e1e69d47d2e895e6e88e35d38325761529
tree8d695cd1417cba0d0a5c2ecef41b45fb57a1e1fb
parent171e0f0ab4b1b7b8e09aa4fcf613c83687783175
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