Whamcloud - gitweb
LU-80 mds: use md_size supplied by client, repack reply
[fs/lustre-release.git] / lustre / mdt / mdt_open.c
index 4301a98..e1f5eb3 100644 (file)
@@ -1280,7 +1280,7 @@ int mdt_reint_open(struct mdt_thread_info *info, struct mdt_lock_handle *lhc)
 
                 if (result != -ENOENT) {
                         if (req->rq_export->exp_libclient &&
-                            create_flags&MDS_OPEN_HAS_EA)
+                            create_flags & MDS_OPEN_HAS_EA)
                                 GOTO(out, result = 0);
                         GOTO(out, result);
                 }
@@ -1623,7 +1623,7 @@ int mdt_close(struct mdt_thread_info *info)
         if (mdt_check_resent(info, mdt_reconstruct_generic, NULL)) {
                 mdt_client_compatibility(info);
                 if (rc == 0)
-                        mdt_shrink_reply(info);
+                        mdt_fix_reply(info);
                 RETURN(lustre_msg_get_status(req->rq_repmsg));
         }
 
@@ -1674,7 +1674,7 @@ int mdt_close(struct mdt_thread_info *info)
         }
         if (repbody != NULL) {
                 mdt_client_compatibility(info);
-                mdt_shrink_reply(info);
+                rc = mdt_fix_reply(info);
         }
 
         if (OBD_FAIL_CHECK(OBD_FAIL_MDS_CLOSE_PACK))