From db7e2ee8dc1e1ca1f7f007707b6c152ffbd723fb Mon Sep 17 00:00:00 2001 From: wangdi Date: Fri, 27 Jun 2008 17:32:44 +0000 Subject: [PATCH] Branch:HEAD missing stride start_offset in stride read-ahead. b=16172 i=Oleg,Johann --- lustre/llite/rw.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index 3ac6fc3..dfe49d8 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -1416,13 +1416,14 @@ static int ll_readahead(struct ll_readahead_state *ras, ras->ras_next_readahead = max(end, end + 1); RAS_CDEBUG(ras); } - ria.ria_start = start; - ria.ria_end = end; - /* If stride I/O mode is detected, get stride window*/ - if (stride_io_mode(ras)) { - ria.ria_length = ras->ras_stride_length; - ria.ria_pages = ras->ras_stride_pages; - } + ria.ria_start = start; + ria.ria_end = end; + /* If stride I/O mode is detected, get stride window*/ + if (stride_io_mode(ras)) { + ria.ria_stoff = ras->ras_stride_offset; + ria.ria_length = ras->ras_stride_length; + ria.ria_pages = ras->ras_stride_pages; + } spin_unlock(&ras->ras_lock); if (end == 0) { -- 1.8.3.1