Whamcloud - gitweb
LU-4614 llite: remove lustre_generic_file_{read,write} 30/9230/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 11 Feb 2014 19:58:32 +0000 (11:58 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Mar 2014 18:48:11 +0000 (18:48 +0000)
commit5377b27b145edf113bf35224ba5d69e45bc9af6f
treece1acffdfd9a4d95d7f82d69b9eb37864889da91
parente2092a056a125cbd10d77dd2912b63a2016c0c1c
LU-4614 llite: remove lustre_generic_file_{read,write}

It looks like lustre_generic_file_{read,write} are a holdover from
2.6.19 where generic_file_aio_read() replaced generic_file_readv()
and cross-kernel interoperability was required for some period of
time. Lustre has since removed support for those older kernels, but
it looks like the wrappers were not deleted at that time. This patch
will delete them.

Pass &iocb->ki_pos as the last argument for these functions instead
of crw_pos, since this is the convention for other callers.  Verify
that this is the same as the current crw_pos argument.  This code can
likely be cleaned up further in a later patch.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Id19edacf93ee2538634feb95580ab885f6069ee7
Reviewed-on: http://review.whamcloud.com/9230
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
lustre/include/lclient.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/vvp_io.c