Whamcloud - gitweb
r=alex
[fs/lustre-release.git] / lustre / mds / handler.c
index 02b8d22..0292710 100644 (file)
@@ -1456,6 +1456,7 @@ int mds_getattr_size(struct obd_device *obd, struct dentry *dentry,
                      struct ptlrpc_request *req, struct mds_body *body)
 {
         struct inode *inode = dentry->d_inode;
+        struct mds_obd *mds = &obd->u.mds;
         ENTRY;
 
         LASSERT(body != NULL);
@@ -1473,6 +1474,9 @@ int mds_getattr_size(struct obd_device *obd, struct dentry *dentry,
                 RETURN(0);
         }
 
+       if (mds->mds_config_generation)
+               return 0;
+
         if (atomic_read(&inode->i_writecount)) {
                 /* some one has opened the file for write.
                  * mds doesn't know actual size */