From: Wang Di Date: Tue, 23 Mar 2010 12:53:07 +0000 (-0400) Subject: b=22233 do_div arguments not cross-platform compatible X-Git-Tag: v1_8_2_55~11 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8eb1e309771d4d134f2b21ff02d0033b4ec885a2;p=fs%2Flustre-release.git b=22233 do_div arguments not cross-platform compatible o=Christopher Morrone i=adilger i=wangdi --- 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)