Whamcloud - gitweb
LU-8127 lfsck: compile XATTR_NAME_LFSCK_NAMESPACE_OLD
[fs/lustre-release.git] / lustre / osc / osc_dev.c
index 22bd81f..1dd13de 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, 2015, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -92,8 +92,6 @@ struct lu_kmem_descr osc_caches[] = {
         }
 };
 
-struct lock_class_key osc_ast_guard_class;
-
 /*****************************************************************************
  *
  * Type conversions.
@@ -125,8 +123,10 @@ static void *osc_key_init(const struct lu_context *ctx,
 static void osc_key_fini(const struct lu_context *ctx,
                          struct lu_context_key *key, void *data)
 {
-        struct osc_thread_info *info = data;
-        OBD_SLAB_FREE_PTR(info, osc_thread_kmem);
+       struct osc_thread_info *info = data;
+
+       lu_buf_free(&info->oti_ladvise_buf);
+       OBD_SLAB_FREE_PTR(info, osc_thread_kmem);
 }
 
 struct lu_context_key osc_key = {