Whamcloud - gitweb
b=22233 do_div arguments not cross-platform compatible
authorWang Di <Tom.Wang@Sun.COM>
Tue, 23 Mar 2010 12:53:07 +0000 (08:53 -0400)
committerJohann Lombardi <johann@sun.com>
Wed, 24 Mar 2010 12:24:49 +0000 (13:24 +0100)
o=Christopher Morrone
i=adilger
i=wangdi

lustre/llite/rw.c

index 526facf..149a035 100644 (file)
@@ -1578,8 +1578,8 @@ static unsigned long
 stride_pg_count(pgoff_t st_off, unsigned long st_len, unsigned long st_pgs,
                 unsigned long off, unsigned long length)
 {
-        unsigned long start = off > st_off ? off - st_off : 0;
-        unsigned long end = off + length > st_off ? off + length - st_off : 0;
+        __u64 start = off > st_off ? off - st_off : 0;
+        __u64 end = off + length > st_off ? off + length - st_off : 0;
         unsigned long start_left = 0;
         unsigned long end_left = 0;
         unsigned long pg_count;
@@ -1597,7 +1597,7 @@ stride_pg_count(pgoff_t st_off, unsigned long st_len, unsigned long st_pgs,
         if (end_left > st_pgs)
                 end_left = st_pgs;
 
-        CDEBUG(D_READA, "start %lu, end %lu start_left %lu end_left %lu \n",
+        CDEBUG(D_READA, "start "LPU64", end "LPU64" start_left %lu end_left %lu \n",
                start, end, start_left, end_left);
 
         if (start == end)