Whamcloud - gitweb
LU-11861 obdclass: fix build with debug kernel 97/41897/3
authorAlexey Lyashkov <c17817@cray.com>
Tue, 15 Jan 2019 12:24:42 +0000 (15:24 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 20 Sep 2022 03:35:04 +0000 (03:35 +0000)
Move declaration before usage.

Lustre-change: https://review.whamcloud.com/34030
Lustre-commit: 2dc87bb143e998e25585673b5f0ba7e2f317475e

Test-Parameters: trivial
Signed-off-by: Alexey Lyashkov <c17817@cray.com>
Change-Id: I9a6c451bb5454b1542f0b06041f6938702e20b36
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-on: https://review.whamcloud.com/41897
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
lustre/obdclass/llog_cat.c

index 91f0290..8116b2f 100644 (file)
 
 #include "llog_internal.h"
 
+
+/**
+ * lockdep markers for nested struct llog_handle::lgh_lock locking.
+ */
+enum {
+       LLOGH_CAT,
+       LLOGH_LOG,
+};
+
 /* Create a new log handle and add it to the open list.
  * This log handle will be closed when all of the records in it are removed.
  *
@@ -459,14 +468,6 @@ int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle)
 }
 EXPORT_SYMBOL(llog_cat_close);
 
-/**
- * lockdep markers for nested struct llog_handle::lgh_lock locking.
- */
-enum {
-        LLOGH_CAT,
-        LLOGH_LOG
-};
-
 /** Return the currently active log handle.  If the current log handle doesn't
  * have enough space left for the current record, start a new one.
  *