Whamcloud - gitweb
LU-983 llite: align readahead to 1M after ra_max adjustment
authorwangdi <di.wang@whamcloud.com>
Mon, 5 Mar 2012 19:44:34 +0000 (11:44 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 8 Mar 2012 00:40:54 +0000 (19:40 -0500)
commit9b1e98dfeda8b2bfbb62313173cbdbcb496c6595
tree4d673e193add9714da77904b4a0938386547a7e9
parent24d87043e32a8bfce5c2e9accf413a0d69f0fe66
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: I8b31621f5b48c3bc98f8d888f91d65b945c51999
Reviewed-on: http://review.whamcloud.com/2260
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/rw.c
lustre/tests/sanity.sh