Whamcloud - gitweb
LU-983 llite: align readahead to 1M after ra_max adjustment
authorwangdi <di.wang@whamcloud.com>
Fri, 20 Jan 2012 20:30:37 +0000 (12:30 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 5 Mar 2012 07:45:01 +0000 (02:45 -0500)
commit5093fef8392c866f1998d6e68b6536d10daabb4d
treeef2d8de2b5170264c9e630e6cd21e109f1c803a4
parentb031b90a0320401db1ae474c4cbd89226bf5f2c9
LU-983 llite: align readahead to 1M after ra_max adjustment

1. Align the readahead pages only if ria_start != 0, otherwise
   the readahead pages will be cut to zero.
2. Add test_101e to verify small reads for small size files.
   Add test_101f to verify max_read_ahead_whole_mb.
3. Port 101c from b1_8

Signed-off-by: Wang Di <di.wang@whamcloud.com>
Change-Id: Ia22434a5d546aa1154f6067c7db84743c4ff5a96
Reviewed-on: http://review.whamcloud.com/1998
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/rw.c
lustre/tests/sanity.sh