Whamcloud - gitweb
LU-3105 mdt: do not announce support for capabilities
[fs/lustre-release.git] / lustre / lov / lov_dev.c
index 8ea9185..c682cac 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2012, 2013, Intel Corporation.
+ * Copyright (c) 2012, 2014, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -58,7 +58,7 @@ struct kmem_cache *lovsub_req_kmem;
 struct kmem_cache *lov_lock_link_kmem;
 
 /** Lock class of lov_device::ld_mutex. */
-struct lock_class_key cl_lov_device_mutex_class;
+static struct lock_class_key cl_lov_device_mutex_class;
 
 struct lu_kmem_descr lov_caches[] = {
         {
@@ -455,7 +455,7 @@ static int lov_process_config(const struct lu_env *env,
                 case LCFG_LOV_ADD_INA:
                         rc = lov_cl_add_target(env, d, index);
                         if (rc != 0)
-                                lov_del_target(d->ld_obd, index, 0, 0);
+                               lov_del_target(d->ld_obd, index, NULL, 0);
                         break;
                 case LCFG_LOV_DEL_OBD:
                         lov_cl_del_target(env, d, index);
@@ -525,6 +525,5 @@ struct lu_device_type lov_device_type = {
         .ldt_ops      = &lov_device_type_ops,
         .ldt_ctx_tags = LCT_CL_THREAD
 };
-EXPORT_SYMBOL(lov_device_type);
 
 /** @} lov */