From: Oleg Drokin Date: Fri, 20 Aug 2010 16:00:39 +0000 (+0400) Subject: b=18016 fix index type in ll_read_ahead_page X-Git-Tag: 2.0.51.0~52 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=a221fb78b48c82df803e1f6f1548a2f75e0ad13f;p=fs%2Flustre-release.git 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 --- 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;