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
Branch HEAD
[fs/lustre-release.git]
/
lustre
/
obdclass
/
llog_cat.c
diff --git
a/lustre/obdclass/llog_cat.c
b/lustre/obdclass/llog_cat.c
index
a757e68
..
5bd8d12
100644
(file)
--- a/
lustre/obdclass/llog_cat.c
+++ b/
lustre/obdclass/llog_cat.c
@@
-507,7
+507,7
@@
int llog_cat_init(struct llog_handle *cathandle, struct obd_uuid *tgtuuid)
down(&cathandle->lgh_lock);
llh = cathandle->lgh_hdr;
down(&cathandle->lgh_lock);
llh = cathandle->lgh_hdr;
- if (
cathandle->lgh_file->f_dentry->d_inode->i_size
== 0) {
+ if (
i_size_read(cathandle->lgh_file->f_dentry->d_inode)
== 0) {
llog_write_rec(cathandle, &llh->llh_hdr, NULL, 0, NULL, 0);
write_hdr:
llog_write_rec(cathandle, &llh->llh_hdr, NULL, 0, NULL, 0);
write_hdr: