Whamcloud - gitweb
- Add mount-epoch checking in most (all?) inode-using operations, in preparation
[fs/lustre-release.git] / lustre / obdfs / rw.c
index f79fd2e..1c94dc7 100644 (file)
@@ -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);