From 8eb1e309771d4d134f2b21ff02d0033b4ec885a2 Mon Sep 17 00:00:00 2001 From: Wang Di Date: Tue, 23 Mar 2010 08:53:07 -0400 Subject: [PATCH] b=22233 do_div arguments not cross-platform compatible o=Christopher Morrone i=adilger i=wangdi --- lustre/llite/rw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index 526facf..149a035 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -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) -- 1.8.3.1