staging: lustre: remove remaining libcfs_all.h includes from lustre/lustre

Most of these aren't needed, a few can be simplified.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
NeilBrown 2018-05-21 14:35:13 +10:00 committed by Greg Kroah-Hartman
parent f076bfb791
commit 8fbb71cb35
18 changed files with 4 additions and 22 deletions

View File

@ -34,6 +34,8 @@
#ifndef LUSTRE_INTENT_H
#define LUSTRE_INTENT_H
#include <linux/types.h>
/* intent IT_XXX are defined in lustre/include/obd.h */
struct lookup_intent {

View File

@ -32,7 +32,6 @@
*/
#define DEBUG_SUBSYSTEM S_LDLM
#include <linux/libcfs/libcfs_all.h>
#include <lustre_dlm.h>
#include <lustre_lib.h>

View File

@ -47,7 +47,6 @@
*/
#define DEBUG_SUBSYSTEM S_LDLM
#include <linux/libcfs/libcfs_all.h>
#include <lustre_dlm.h>
#include <obd_support.h>
#include <obd.h>

View File

@ -40,7 +40,6 @@
#define DEBUG_SUBSYSTEM S_LDLM
#include <linux/libcfs/libcfs_all.h>
#include <obd.h>
#include <obd_class.h>
#include <lustre_dlm.h>

View File

@ -38,7 +38,6 @@
#define DEBUG_SUBSYSTEM S_LDLM
#include <linux/libcfs/libcfs_all.h>
#include <lustre_intent.h>
#include <lustre_swab.h>
#include <obd_class.h>

View File

@ -38,7 +38,7 @@
#define DEBUG_SUBSYSTEM S_LDLM
#include <linux/libcfs/libcfs_all.h>
#include <linux/kthread.h>
#include <linux/sched/mm.h>
#include <lustre_dlm.h>
#include <obd_class.h>

View File

@ -37,7 +37,6 @@
* Author: Oleg Drokin <oleg.drokin@sun.com>
*/
#include <linux/libcfs/libcfs_all.h>
#include <obd_class.h>
#include <obd_support.h>
#include <obd.h>

View File

@ -38,7 +38,6 @@
#define DEBUG_SUBSYSTEM S_LLITE
#include <linux/libcfs/libcfs_all.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/mm.h>

View File

@ -37,8 +37,6 @@
#define DEBUG_SUBSYSTEM S_LLITE
#include <linux/libcfs/libcfs_all.h>
#include <obd.h>
#include "llite_internal.h"

View File

@ -38,7 +38,6 @@
#define DEBUG_SUBSYSTEM S_LOV
#include <asm/div64.h>
#include <linux/libcfs/libcfs_all.h>
#include <obd_class.h>
#include <uapi/linux/lustre/lustre_idl.h>

View File

@ -33,8 +33,6 @@
#define DEBUG_SUBSYSTEM S_LOV
#include <linux/libcfs/libcfs_all.h>
#include <obd_class.h>
#include "lov_internal.h"

View File

@ -39,7 +39,6 @@
*/
#define DEBUG_SUBSYSTEM S_LOV
#include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lustre/lustre_idl.h>
#include <uapi/linux/lustre/lustre_ioctl.h>

View File

@ -33,8 +33,6 @@
#define DEBUG_SUBSYSTEM S_LOV
#include <linux/libcfs/libcfs_all.h>
#include <obd_class.h>
#include "lov_internal.h"

View File

@ -41,8 +41,6 @@
#define DEBUG_SUBSYSTEM S_LOV
#include <linux/libcfs/libcfs_all.h>
#include <obd.h>
#include "lov_internal.h"

View File

@ -33,8 +33,6 @@
#define DEBUG_SUBSYSTEM S_LOV
#include <linux/libcfs/libcfs_all.h>
#include <obd_class.h>
#include <uapi/linux/lustre/lustre_idl.h>
#include "lov_internal.h"

View File

@ -32,7 +32,6 @@
*/
#define DEBUG_SUBSYSTEM S_ECHO
#include <linux/libcfs/libcfs_all.h>
#include <obd.h>
#include <obd_support.h>

View File

@ -38,7 +38,6 @@
#define DEBUG_SUBSYSTEM S_OSC
#include <linux/libcfs/libcfs_all.h>
/* fid_build_reg_res_name() */
#include <lustre_fid.h>

View File

@ -33,7 +33,7 @@
#define DEBUG_SUBSYSTEM S_OSC
#include <linux/libcfs/libcfs_all.h>
#include <linux/libcfs/libcfs_hash.h>
#include <linux/sched/mm.h>
#include <lustre_dlm.h>