Whamcloud - gitweb
LU-4423 ptlrpc: make ptlrpc_bulk_frag_ops always const. 95/35295/2
authorNeilBrown <neilb@suse.com>
Sun, 23 Jun 2019 13:41:25 +0000 (09:41 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jun 2019 21:34:10 +0000 (21:34 +0000)
commit490f0dd33b2244029f8bf17050f7a86bc76986d6
tree10527a2bd097157e7f8222cb7f6480fc3046f92c
parent0096afdb7404f649b69a8c528eed6c48593cb226
LU-4423 ptlrpc: make ptlrpc_bulk_frag_ops always const.

There is one place where a non-const pointer to this struct
exists, and that causes a cast to be required.

Make it always const, and discard the cast.

Test-Parameters: trivial

Change-Id: Ic48ff6a1f759abdddc75298feee2b68c60bf3e7b
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-on: https://review.whamcloud.com/35295
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_net.h
lustre/ptlrpc/client.c