Whamcloud - gitweb
LU-610 fix the wrong data type in find_value_cmp
authorHongchao Zhang <hongchao.zhang@whamcloud.com>
Tue, 11 Oct 2011 02:39:07 +0000 (10:39 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Thu, 13 Oct 2011 20:21:49 +0000 (16:21 -0400)
in function find_value_cmp(lustre/utils/liblustreapi.c), the data type for
parameters "file" and "limit" is converted from "unsigned long long" type
into "unsigned int" type by mistake, and the file size should be defined
as "unsigned long long" type too.

Change-Id: I83326b50860bdfeb4cd31509f99f7ab1b6a8ab13
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1401
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/utils/liblustreapi.c

index f27f4c3..fba85d6 100644 (file)
@@ -1708,8 +1708,9 @@ int llapi_file_lookup(int dirfd, const char *name)
  * --------------------------------------
  * Note: 5th actually means that the value is within the interval
  * (limit - margin, limit]. */
-static int find_value_cmp(unsigned int file, unsigned int limit, int sign,
-                          int negopt, unsigned long long margin, int mds)
+static int find_value_cmp(unsigned long long file, unsigned long long limit,
+                          int sign, int negopt, unsigned long long margin,
+                          int mds)
 {
         int ret = -1;