Whamcloud - gitweb
b=18016 fix index type in ll_read_ahead_page
authorOleg Drokin <green@linuxhacker.ru>
Fri, 20 Aug 2010 16:00:39 +0000 (20:00 +0400)
committerMikhail Pershin <tappro@sun.com>
Fri, 20 Aug 2010 16:54:12 +0000 (20:54 +0400)
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

index c88ee15..4c6da36 100644 (file)
@@ -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;