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
- Add mount-epoch checking in most (all?) inode-using operations, in preparation
[fs/lustre-release.git]
/
lustre
/
obdfs
/
rw.c
diff --git
a/lustre/obdfs/rw.c
b/lustre/obdfs/rw.c
index
f79fd2e
..
1c94dc7
100644
(file)
--- a/
lustre/obdfs/rw.c
+++ b/
lustre/obdfs/rw.c
@@
-160,6
+160,9
@@
static int obdfs_brw(int rw, struct inode *inode2,
ENTRY;
+ CHECK_MOUNT_EPOCH(inode);
+ CHECK_MOUNT_EPOCH(inode2);
+
err = obd_brw(rw == WRITE ? OBD_BRW_WRITE : OBD_BRW_READ, IID(inode),
md, 1, &page, &count, &offset,
&flags, NULL);