Whamcloud - gitweb
LU-2008 utils: quote TUNE2FS options in ldiskfs_label_lustre
[fs/lustre-release.git] / lnet / lnet / lib-md.c
index 96b4660..f730e24 100644 (file)
@@ -26,6 +26,8 @@
 /*
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright (c) 2012, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -263,7 +265,7 @@ lnet_md_validate(lnet_md_t *umd)
  */
 int
 LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
-             lnet_unlink_t unlink, lnet_handle_md_t *handle)
+            lnet_unlink_t unlink, lnet_handle_md_t *handle)
 {
        CFS_LIST_HEAD           (matches);
        CFS_LIST_HEAD           (drops);
@@ -294,11 +296,11 @@ LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
        if (rc != 0)
                goto failed;
 
-        me = lnet_handle2me(&meh);
+       me = lnet_handle2me(&meh);
        if (me == NULL)
                rc = -ENOENT;
        else if (me->me_md != NULL)
-                rc = -EBUSY;
+               rc = -EBUSY;
        else
                rc = lnet_md_link(md, umd.eq_handle, cpt);
 
@@ -324,6 +326,7 @@ LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
        lnet_res_unlock(cpt);
        return rc;
 }
+EXPORT_SYMBOL(LNetMDAttach);
 
 /**
  * Create a "free floating" memory descriptor - a MD that is not associated
@@ -384,6 +387,7 @@ LNetMDBind(lnet_md_t umd, lnet_unlink_t unlink, lnet_handle_md_t *handle)
        lnet_res_unlock(cpt);
        return rc;
 }
+EXPORT_SYMBOL(LNetMDBind);
 
 /**
  * Unlink the memory descriptor from any ME it may be linked to and release
@@ -448,3 +452,4 @@ LNetMDUnlink (lnet_handle_md_t mdh)
        lnet_res_unlock(cpt);
        return 0;
 }
+EXPORT_SYMBOL(LNetMDUnlink);