From a221fb78b48c82df803e1f6f1548a2f75e0ad13f Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Fri, 20 Aug 2010 20:00:39 +0400 Subject: [PATCH] b=18016 fix index type in ll_read_ahead_page The page index type in ll_read_ahead_page was int which is wrong and breaks after we cross ~10T barrier breaking read ahead beyod that offset. Changred it to pgoff_t i=wangdi i=panda --- lustre/llite/rw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index c88ee15..4c6da36 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -503,7 +503,7 @@ static int cl_read_ahead_page(const struct lu_env *env, struct cl_io *io, */ static int ll_read_ahead_page(const struct lu_env *env, struct cl_io *io, struct cl_page_list *queue, - int index, struct address_space *mapping) + pgoff_t index, struct address_space *mapping) { struct page *vmpage; struct cl_object *clob = ll_i2info(mapping->host)->lli_clob; -- 1.8.3.1