Whamcloud - gitweb
LU-12367 llite: Fix page count for unaligned reads 15/35015/7
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 31 May 2019 23:52:31 +0000 (19:52 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Sep 2019 01:51:38 +0000 (01:51 +0000)
commitd4a54de84c0554a21b215621b4df5fdd93e38f74
tree001e01639c9bdb02bf46b5bb4c441b6a2b941fe6
parent02b5a407081c88090f7237ef464a6f6c74139f67
LU-12367 llite: Fix page count for unaligned reads

When a read is unaligned on both the first and last page,
the calculation used to determine count of pages for
readahead misses that we access both of those pages.

Increase the calculated count by 1 in this case.

This case is covered by the generic readahead tests added
in LU-12645.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Idb28d300a232026a9d916d010ee8ebf209283242
Reviewed-on: https://review.whamcloud.com/35015
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/vvp_io.c
lustre/tests/sanity.sh