Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13d7f66
)
b=19051
author
manoj
<manoj>
Thu, 30 Apr 2009 20:55:08 +0000
(20:55 +0000)
committer
manoj
<manoj>
Thu, 30 Apr 2009 20:55:08 +0000
(20:55 +0000)
r=yong.fan, jinshan.xiong
Use 64bits (loff_t) for holding file size instead of size_t
lustre/lclient/lcommon_cl.c
patch
|
blob
|
history
diff --git
a/lustre/lclient/lcommon_cl.c
b/lustre/lclient/lcommon_cl.c
index
569f165
..
53eda90
100644
(file)
--- 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) ||