Whamcloud - gitweb
LU-7232 statahead: lock leaks if statahead file recreated
[fs/lustre-release.git] / lustre / ptlrpc / sec_ctx.c
index 431f4b3..1873e7a 100644 (file)
  *
  * GPL HEADER END
  */
-#ifdef __KERNEL__
+/*
+ * Copyright (c) 2014, Intel Corporation.
+ */
 
 #define DEBUG_SUBSYSTEM S_FILTER
 
 #include <linux/fs.h>
 #include <libcfs/libcfs.h>
 #include <lvfs.h>
+#include <obd_class.h>
+
+#include "ptlrpc_internal.h"
 
 /* refine later and change to seqlock or simlar from libcfs */
 /* Debugging check only needed during development */
@@ -123,4 +128,3 @@ put_old:
        dput(dchild_old);
        RETURN(err);
 }
-#endif /* __KERNEL__ */