From aa9e7148453ded079e5f68906fc39586b6876923 Mon Sep 17 00:00:00 2001 From: manoj Date: Thu, 30 Apr 2009 20:55:08 +0000 Subject: [PATCH] b=19051 r=yong.fan, jinshan.xiong Use 64bits (loff_t) for holding file size instead of size_t --- lustre/lclient/lcommon_cl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lclient/lcommon_cl.c b/lustre/lclient/lcommon_cl.c index 569f165..53eda90 100644 --- a/lustre/lclient/lcommon_cl.c +++ b/lustre/lclient/lcommon_cl.c @@ -831,7 +831,7 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj, * kernel will check such case correctly. * linux-2.6.18-128.1.1 miss to do that. * --bug 17336 */ - size_t size = cl_isize_read(inode); + loff_t size = cl_isize_read(inode); unsigned long cur_index = start >> CFS_PAGE_SHIFT; if ((size == 0 && cur_index != 0) || -- 1.8.3.1