Whamcloud - gitweb
LU-13004 lnet: always pass struct lnet_md by reference.
[fs/lustre-release.git] / lnet / include / lnet / api.h
index bc6e9d9..f552349 100644 (file)
@@ -119,11 +119,11 @@ void LNetMEUnlink(struct lnet_me *current_in);
  * associated with a MD: LNetMDUnlink().
  * @{ */
 int LNetMDAttach(struct lnet_me *current_in,
-                struct lnet_md md_in,
+                const struct lnet_md *md_in,
                 enum lnet_unlink unlink_in,
                 struct lnet_handle_md *md_handle_out);
 
-int LNetMDBind(struct lnet_md   md_in,
+int LNetMDBind(const struct lnet_md *md_in,
               enum lnet_unlink unlink_in,
               struct lnet_handle_md *md_handle_out);