2007-01-06 07:28:00

by Wu Fengguang

[permalink] [raw]
Subject: [PATCH 6/6] readahead: nfsd case: remove ra_min

ra_min => req_size.
Now it is for try_context_based_readahead() to compute ra_min from req_size.

Please fold it into readahead-nfsd-case.patch to avoid a compiling error.

Signed-off-by: Fengguang Wu <[email protected]>
---
mm/readahead.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.20-rc3-mm1.orig/mm/readahead.c
+++ linux-2.6.20-rc3-mm1/mm/readahead.c
@@ -1673,7 +1673,7 @@ readit:
!probe_page(mapping, ra_index)) {
ra->prev_page = ra_index - 1;
ret = try_context_based_readahead(mapping, ra, NULL,
- ra_index, ra_min, ra_max);
+ ra_index, req_size, ra_max);
if (ret > 0)
ra_size += ra_submit(ra, mapping, filp);
}

--