Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-169 lov: add basic infrastructure for layout lock
[fs/lustre-release.git]
/
lustre
/
obdclass
/
obdo.c
diff --git
a/lustre/obdclass/obdo.c
b/lustre/obdclass/obdo.c
index
9da2405
..
2fb154c
100644
(file)
--- a/
lustre/obdclass/obdo.c
+++ b/
lustre/obdclass/obdo.c
@@
-85,7
+85,7
@@
void obdo_from_inode(struct obdo *dst, struct inode *src, struct lu_fid *parent,
newvalid |= OBD_MD_FLCTIME;
}
if (valid & OBD_MD_FLSIZE) {
- dst->o_size =
src->i_size
;
+ dst->o_size =
i_size_read(src)
;
newvalid |= OBD_MD_FLSIZE;
}
if (valid & OBD_MD_FLBLOCKS) { /* allocation of space (x512 bytes) */