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
/
obdfilter
/
filter.c
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
a31ecf3
..
f61d613
100644
(file)
--- a/
lustre/obdfilter/filter.c
+++ b/
lustre/obdfilter/filter.c
@@
-3908,7
+3908,7
@@
static int filter_precreate(struct obd_device *obd, struct obdo *oa,
} else {
/* Use these existing objects if they are
* zero length. */
- if (
dchild->d_inode->i_size
== 0) {
+ if (
i_size_read(dchild->d_inode)
== 0) {
rc = filter_use_existing_obj(obd,dchild,
&handle, &cleanup_phase);
if (rc == 0)