staging/lustre/llite: remove ll_file_get_iov_count
authorPeng Tao <bergwolf@gmail.com>
Tue, 3 Dec 2013 17:54:57 +0000 (01:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 23:27:11 +0000 (15:27 -0800)
commit960edbe307b1f23fa481bed2c6fa492649ea3f30
treee3f1a917d79f839e242fecc983c4d1cce30f4b9b
parent284c145e7e06858ce93a7164fc8420434f4f72cb
staging/lustre/llite: remove ll_file_get_iov_count

It exactly copies generic_segment_checks() except wrongly calling
access_ok(VERIFY_READ) for aio read range. Drop it and just call
generic_segment_checks() instead.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c