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:
ef1de0f
)
- fill io epoch in MDS_CLOSE only if file is writtable
author
alex
<alex>
Sun, 28 Aug 2005 17:57:15 +0000
(17:57 +0000)
committer
alex
<alex>
Sun, 28 Aug 2005 17:57:15 +0000
(17:57 +0000)
lustre/llite/file.c
patch
|
blob
|
history
diff --git
a/lustre/llite/file.c
b/lustre/llite/file.c
index
c6a7058
..
fd24def
100644
(file)
--- a/
lustre/llite/file.c
+++ b/
lustre/llite/file.c
@@
-154,7
+154,7
@@
int ll_md_real_close(struct obd_export *md_exp,
int freeing = inode->i_state & I_FREEING;
struct obd_client_handle **och_p;
struct obd_client_handle *och;
int freeing = inode->i_state & I_FREEING;
struct obd_client_handle **och_p;
struct obd_client_handle *och;
- __u64 *och_usecount, epoch;
+ __u64 *och_usecount, epoch
= 0
;
int rc = 0, dirty = 0;
ENTRY;
int rc = 0, dirty = 0;
ENTRY;
@@
-199,8
+199,10
@@
int ll_md_real_close(struct obd_export *md_exp,
och = *och_p;
*och_p = NULL;
och = *och_p;
*och_p = NULL;
- epoch = lli->lli_io_epoch;
- lli->lli_io_epoch = 0;
+ if (flags & FMODE_WRITE) {
+ epoch = lli->lli_io_epoch;
+ lli->lli_io_epoch = 0;
+ }
up(&lli->lli_och_sem);
up(&lli->lli_och_sem);