staging: lustre: start moving includes out of libcfs.h

Lots of places include libcfs.h, and it includes lots of other include
files.  Many of these aren't needed in many places.  It is tidier and
better documentation to just include what is needed.

So remove all the includes from libcfs.h and create libcfs_all.h which
contains them.  Then change every reference to libcfs.h to instead
include libcfs_all.h

Next several patches will remove that from various files
in small batches

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 7673fd6b6a
commit e6eafdb9f9
88 changed files with 177 additions and 133 deletions

View File

@ -34,56 +34,12 @@
#ifndef __LIBCFS_LIBCFS_H__ #ifndef __LIBCFS_LIBCFS_H__
#define __LIBCFS_LIBCFS_H__ #define __LIBCFS_LIBCFS_H__
#include <linux/gfp.h>
#include <linux/list.h>
#include <uapi/linux/lnet/libcfs_ioctl.h>
#include <linux/bitops.h>
#include <linux/compiler.h>
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/highmem.h>
#include <linux/interrupt.h>
#include <linux/kallsyms.h>
#include <linux/kernel.h>
#include <linux/kmod.h>
#include <linux/kthread.h>
#include <linux/mm.h>
#include <linux/mm_inline.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/mutex.h>
#include <linux/notifier.h> #include <linux/notifier.h>
#include <linux/pagemap.h> #include <linux/workqueue.h>
#include <linux/random.h> #include <linux/sysctl.h>
#include <linux/rbtree.h>
#include <linux/rwsem.h>
#include <linux/scatterlist.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/slab.h>
#include <linux/smp.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/time.h>
#include <linux/timer.h>
#include <linux/types.h>
#include <linux/unistd.h>
#include <linux/vmalloc.h>
#include <net/sock.h>
#include <linux/atomic.h>
#include <asm/div64.h>
#include <linux/timex.h>
#include <linux/uaccess.h>
#include <stdarg.h>
#include <linux/libcfs/libcfs_debug.h> #include <linux/libcfs/libcfs_debug.h>
#include <linux/libcfs/libcfs_private.h> #include <linux/libcfs/libcfs_private.h>
#include <linux/libcfs/libcfs_cpu.h>
#include <linux/libcfs/libcfs_string.h>
#include <linux/libcfs/libcfs_hash.h>
#include <linux/libcfs/libcfs_fail.h> #include <linux/libcfs/libcfs_fail.h>
#define LIBCFS_VERSION "0.7.0" #define LIBCFS_VERSION "0.7.0"

View File

@ -0,0 +1,88 @@
// SPDX-License-Identifier: GPL-2.0
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License version 2 for more details (a copy is included
* in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
* http://www.gnu.org/licenses/gpl-2.0.html
*
* GPL HEADER END
*/
/*
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 2011, 2015, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
* Lustre is a trademark of Sun Microsystems, Inc.
*/
#ifndef __LIBCFS_LIBCFS_ALL_H__
#define __LIBCFS_LIBCFS_ALL_H__
#include <linux/gfp.h>
#include <linux/list.h>
#include <uapi/linux/lnet/libcfs_ioctl.h>
#include <linux/bitops.h>
#include <linux/compiler.h>
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/highmem.h>
#include <linux/interrupt.h>
#include <linux/kallsyms.h>
#include <linux/kernel.h>
#include <linux/kmod.h>
#include <linux/kthread.h>
#include <linux/mm.h>
#include <linux/mm_inline.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/mutex.h>
#include <linux/notifier.h>
#include <linux/pagemap.h>
#include <linux/random.h>
#include <linux/rbtree.h>
#include <linux/rwsem.h>
#include <linux/scatterlist.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/slab.h>
#include <linux/smp.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/time.h>
#include <linux/timer.h>
#include <linux/types.h>
#include <linux/unistd.h>
#include <linux/vmalloc.h>
#include <net/sock.h>
#include <linux/atomic.h>
#include <asm/div64.h>
#include <linux/timex.h>
#include <linux/uaccess.h>
#include <stdarg.h>
#include <linux/libcfs/libcfs.h>
#include <linux/libcfs/libcfs_cpu.h>
#include <linux/libcfs/libcfs_string.h>
#include <linux/libcfs/libcfs_hash.h>
#endif /* __LIBCFS_LIBCFS_ALL_H__ */

View File

@ -36,7 +36,7 @@
#ifndef __LNET_LIB_LNET_H__ #ifndef __LNET_LIB_LNET_H__
#define __LNET_LIB_LNET_H__ #define __LNET_LIB_LNET_H__
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/api.h> #include <linux/lnet/api.h>
#include <linux/lnet/lib-types.h> #include <linux/lnet/lib-types.h>
#include <uapi/linux/lnet/lnet-dlc.h> #include <uapi/linux/lnet/lnet-dlc.h>

View File

@ -64,7 +64,7 @@
#define DEBUG_SUBSYSTEM S_LND #define DEBUG_SUBSYSTEM S_LND
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
#define IBLND_PEER_HASH_SIZE 101 /* # peer lists */ #define IBLND_PEER_HASH_SIZE 101 /* # peer lists */

View File

@ -47,7 +47,7 @@
#include <net/sock.h> #include <net/sock.h>
#include <net/tcp.h> #include <net/tcp.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
#include <linux/lnet/socklnd.h> #include <linux/lnet/socklnd.h>

View File

@ -38,7 +38,7 @@
# define DEBUG_SUBSYSTEM S_LNET # define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include "tracefile.h" #include "tracefile.h"
static char debug_file_name[1024]; static char debug_file_name[1024];

View File

@ -30,7 +30,7 @@
* Lustre is a trademark of Oracle Corporation, Inc. * Lustre is a trademark of Oracle Corporation, Inc.
*/ */
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
unsigned long cfs_fail_loc; unsigned long cfs_fail_loc;
EXPORT_SYMBOL(cfs_fail_loc); EXPORT_SYMBOL(cfs_fail_loc);

View File

@ -106,7 +106,7 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/log2.h> #include <linux/log2.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#if CFS_HASH_DEBUG_LEVEL >= CFS_HASH_DEBUG_1 #if CFS_HASH_DEBUG_LEVEL >= CFS_HASH_DEBUG_1
static unsigned int warn_on_depth = 8; static unsigned int warn_on_depth = 8;

View File

@ -31,7 +31,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/** Global CPU partition table */ /** Global CPU partition table */
struct cfs_cpt_table *cfs_cpt_tab __read_mostly; struct cfs_cpt_table *cfs_cpt_tab __read_mostly;
@ -40,7 +40,7 @@ EXPORT_SYMBOL(cfs_cpt_tab);
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/** /**
* modparam for setting number of partitions * modparam for setting number of partitions

View File

@ -28,7 +28,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/** destroy cpu-partition lock, see libcfs_private.h for more detail */ /** destroy cpu-partition lock, see libcfs_private.h for more detail */
void void

View File

@ -29,7 +29,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
struct cfs_var_array { struct cfs_var_array {
unsigned int va_count; /* # of buffers */ unsigned int va_count; /* # of buffers */

View File

@ -37,7 +37,7 @@
* Author: Nathan Rutman <nathan.rutman@sun.com> * Author: Nathan Rutman <nathan.rutman@sun.com>
*/ */
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/* Convert a text string to a bitmask */ /* Convert a text string to a bitmask */
int cfs_str2mask(const char *str, const char *(*bit2str)(int bit), int cfs_str2mask(const char *str, const char *(*bit2str)(int bit),

View File

@ -30,7 +30,7 @@
#include <crypto/hash.h> #include <crypto/hash.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/libcfs/libcfs_crypto.h> #include <linux/libcfs/libcfs_crypto.h>
#include "linux-crypto.h" #include "linux-crypto.h"

View File

@ -51,7 +51,7 @@
# define DEBUG_SUBSYSTEM S_LNET # define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include "tracefile.h" #include "tracefile.h"

View File

@ -34,7 +34,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#define LUSTRE_TRACEFILE_PRIVATE #define LUSTRE_TRACEFILE_PRIVATE
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include "tracefile.h" #include "tracefile.h"
/* percents to share the total debug memory for each type */ /* percents to share the total debug memory for each type */

View File

@ -52,7 +52,7 @@
# define DEBUG_SUBSYSTEM S_LNET # define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <asm/div64.h> #include <asm/div64.h>
#include <linux/libcfs/libcfs_crypto.h> #include <linux/libcfs/libcfs_crypto.h>

View File

@ -41,7 +41,7 @@
#define pr_fmt(fmt) "Lustre: " fmt #define pr_fmt(fmt) "Lustre: " fmt
#include "tracefile.h" #include "tracefile.h"
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/* XXX move things up to the top, comment */ /* XXX move things up to the top, comment */
union cfs_trace_data_union (*cfs_trace_data[TCD_MAX_TYPES])[NR_CPUS] __cacheline_aligned; union cfs_trace_data_union (*cfs_trace_data[TCD_MAX_TYPES])[NR_CPUS] __cacheline_aligned;

View File

@ -34,7 +34,7 @@
#ifndef __LIBCFS_TRACEFILE_H__ #ifndef __LIBCFS_TRACEFILE_H__
#define __LIBCFS_TRACEFILE_H__ #define __LIBCFS_TRACEFILE_H__
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
enum cfs_trace_buf_type { enum cfs_trace_buf_type {
CFS_TCD_TYPE_PROC = 0, CFS_TCD_TYPE_PROC = 0,

View File

@ -41,7 +41,7 @@
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <net/sock.h> #include <net/sock.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
static int static int

View File

@ -37,7 +37,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lnet/nidstr.h> #include <uapi/linux/lnet/nidstr.h>
/* max value for numeric network address */ /* max value for numeric network address */

View File

@ -20,7 +20,7 @@
#define DEBUG_SUBSYSTEM S_LNET #define DEBUG_SUBSYSTEM S_LNET
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
/* /*

View File

@ -37,7 +37,7 @@
* Author: Liang Zhen <liangzhen@clusterfs.com> * Author: Liang Zhen <liangzhen@clusterfs.com>
*/ */
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
#include <uapi/linux/lnet/lnetst.h> #include <uapi/linux/lnet/lnetst.h>
#include "console.h" #include "console.h"

View File

@ -37,7 +37,7 @@
* Author: Liang Zhen <liang@whamcloud.com> * Author: Liang Zhen <liang@whamcloud.com>
*/ */
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
#include "timer.h" #include "timer.h"
#include "conrpc.h" #include "conrpc.h"

View File

@ -40,7 +40,7 @@
#ifndef __LST_CONRPC_H__ #ifndef __LST_CONRPC_H__
#define __LST_CONRPC_H__ #define __LST_CONRPC_H__
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-types.h> #include <linux/lnet/lib-types.h>
#include <uapi/linux/lnet/lnetst.h> #include <uapi/linux/lnet/lnetst.h>
#include "rpc.h" #include "rpc.h"

View File

@ -37,7 +37,7 @@
* Author: Liang Zhen <liangzhen@clusterfs.com> * Author: Liang Zhen <liangzhen@clusterfs.com>
*/ */
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
#include "console.h" #include "console.h"
#include "conrpc.h" #include "conrpc.h"

View File

@ -40,7 +40,7 @@
#ifndef __LST_CONSOLE_H__ #ifndef __LST_CONSOLE_H__
#define __LST_CONSOLE_H__ #define __LST_CONSOLE_H__
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-types.h> #include <linux/lnet/lib-types.h>
#include <uapi/linux/lnet/lnetst.h> #include <uapi/linux/lnet/lnetst.h>
#include "selftest.h" #include "selftest.h"

View File

@ -39,7 +39,7 @@
#define LNET_ONLY #define LNET_ONLY
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/lnet/lib-lnet.h> #include <linux/lnet/lib-lnet.h>
#include <linux/lnet/lib-types.h> #include <linux/lnet/lib-types.h>
#include <uapi/linux/lnet/lnetst.h> #include <uapi/linux/lnet/lnetst.h>

View File

@ -38,7 +38,7 @@
#define __FID_INTERNAL_H #define __FID_INTERNAL_H
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/* Functions used internally in module. */ /* Functions used internally in module. */

View File

@ -40,7 +40,7 @@
#define DEBUG_SUBSYSTEM S_FID #define DEBUG_SUBSYSTEM S_FID
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/module.h> #include <linux/module.h>
#include <lustre_fid.h> #include <lustre_fid.h>

View File

@ -39,7 +39,7 @@
#define DEBUG_SUBSYSTEM S_FID #define DEBUG_SUBSYSTEM S_FID
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/module.h> #include <linux/module.h>
#include <obd.h> #include <obd.h>

View File

@ -39,7 +39,7 @@
#define DEBUG_SUBSYSTEM S_FID #define DEBUG_SUBSYSTEM S_FID
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/module.h> #include <linux/module.h>
#include <obd.h> #include <obd.h>

View File

@ -40,7 +40,7 @@
#define DEBUG_SUBSYSTEM S_FLD #define DEBUG_SUBSYSTEM S_FLD
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/module.h> #include <linux/module.h>
#include <asm/div64.h> #include <asm/div64.h>

View File

@ -59,7 +59,7 @@
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <lustre_req_layout.h> #include <lustre_req_layout.h>
#include <lustre_fld.h> #include <lustre_fld.h>

View File

@ -39,7 +39,7 @@
#define DEBUG_SUBSYSTEM S_FLD #define DEBUG_SUBSYSTEM S_FLD
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/module.h> #include <linux/module.h>
#include <asm/div64.h> #include <asm/div64.h>

View File

@ -40,7 +40,7 @@
#define DEBUG_SUBSYSTEM S_FLD #define DEBUG_SUBSYSTEM S_FLD
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/module.h> #include <linux/module.h>
#include <obd.h> #include <obd.h>

View File

@ -44,7 +44,7 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lustre/lustre_cfg.h> #include <uapi/linux/lustre/lustre_cfg.h>
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>

View File

@ -36,7 +36,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <linux/percpu_counter.h> #include <linux/percpu_counter.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>
#include <lu_ref.h> #include <lu_ref.h>

View File

@ -48,7 +48,7 @@
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/backing-dev.h> #include <linux/backing-dev.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/****************** persistent mount data *********************/ /****************** persistent mount data *********************/

View File

@ -149,7 +149,7 @@
* Even so, the MDT and OST resources are also in different LDLM namespaces. * Even so, the MDT and OST resources are also in different LDLM namespaces.
*/ */
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lustre/lustre_fid.h> #include <uapi/linux/lustre/lustre_fid.h>
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>
#include <uapi/linux/lustre/lustre_ostid.h> #include <uapi/linux/lustre/lustre_ostid.h>

View File

@ -40,7 +40,7 @@
*/ */
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <seq_range.h> #include <seq_range.h>
struct lu_client_fld; struct lu_client_fld;

View File

@ -45,7 +45,7 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
struct portals_handle_ops { struct portals_handle_ops {
void (*hop_addref)(void *object); void (*hop_addref)(void *object);

View File

@ -46,7 +46,7 @@
#include <linux/sched/signal.h> #include <linux/sched/signal.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>
#include <uapi/linux/lustre/lustre_ver.h> #include <uapi/linux/lustre/lustre_ver.h>
#include <uapi/linux/lustre/lustre_cfg.h> #include <uapi/linux/lustre/lustre_cfg.h>

View File

@ -49,7 +49,7 @@
#include <linux/dcache.h> #include <linux/dcache.h>
#include <lustre_intent.h> #include <lustre_intent.h>
#include <lustre_handles.h> #include <lustre_handles.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_class.h> #include <obd_class.h>
#include <lustre_lib.h> #include <lustre_lib.h>
#include <lustre_dlm.h> #include <lustre_dlm.h>

View File

@ -45,7 +45,7 @@
*/ */
#include <lustre_handles.h> #include <lustre_handles.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <lustre_lib.h> #include <lustre_lib.h>
#include <lustre_dlm.h> #include <lustre_dlm.h>
#include <lustre_export.h> #include <lustre_export.h>

View File

@ -52,7 +52,7 @@
*/ */
#include <linux/uio.h> #include <linux/uio.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lnet/nidstr.h> #include <uapi/linux/lnet/nidstr.h>
#include <linux/lnet/api.h> #include <linux/lnet/api.h>
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>

View File

@ -31,7 +31,7 @@
#ifndef __OBD_CKSUM #ifndef __OBD_CKSUM
#define __OBD_CKSUM #define __OBD_CKSUM
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/libcfs/libcfs_crypto.h> #include <linux/libcfs/libcfs_crypto.h>
#include <uapi/linux/lustre/lustre_idl.h> #include <uapi/linux/lustre/lustre_idl.h>

View File

@ -37,7 +37,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/sched/signal.h> #include <linux/sched/signal.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <lustre_compat.h> #include <lustre_compat.h>
#include <lprocfs_status.h> #include <lprocfs_status.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -37,7 +37,7 @@
#ifndef _RANGE_LOCK_H #ifndef _RANGE_LOCK_H
#define _RANGE_LOCK_H #define _RANGE_LOCK_H
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <interval_tree.h> #include <interval_tree.h>
struct range_lock { struct range_lock {

View File

@ -37,7 +37,7 @@
#define DEBUG_SUBSYSTEM S_LLITE #define DEBUG_SUBSYSTEM S_LLITE
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd.h> #include <obd.h>

View File

@ -43,7 +43,7 @@
#ifndef LOV_CL_INTERNAL_H #ifndef LOV_CL_INTERNAL_H
#define LOV_CL_INTERNAL_H #define LOV_CL_INTERNAL_H
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd.h> #include <obd.h>
#include <cl_object.h> #include <cl_object.h>

View File

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

View File

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

View File

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

View File

@ -33,7 +33,7 @@
#define DEBUG_SUBSYSTEM S_LOV #define DEBUG_SUBSYSTEM S_LOV
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_class.h> #include <obd_class.h>

View File

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

View File

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

View File

@ -34,7 +34,7 @@
#ifndef _MGC_INTERNAL_H #ifndef _MGC_INTERNAL_H
#define _MGC_INTERNAL_H #define _MGC_INTERNAL_H
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <lustre_lib.h> #include <lustre_lib.h>
#include <lustre_dlm.h> #include <lustre_dlm.h>
#include <lustre_log.h> #include <lustre_log.h>

View File

@ -47,7 +47,7 @@
#define DEBUG_SUBSYSTEM S_CLASS #define DEBUG_SUBSYSTEM S_CLASS
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
/* class_put_type() */ /* class_put_type() */
#include <obd_class.h> #include <obd_class.h>
#include <obd_support.h> #include <obd_support.h>

View File

@ -38,7 +38,7 @@
#define DEBUG_SUBSYSTEM S_CLASS #define DEBUG_SUBSYSTEM S_CLASS
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_class.h> #include <obd_class.h>
#include <obd_support.h> #include <obd_support.h>
#include <linux/list.h> #include <linux/list.h>

View File

@ -60,7 +60,7 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/kobject.h> #include <linux/kobject.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lnet/lnetctl.h> #include <uapi/linux/lnet/lnetctl.h>
#include <obd_support.h> #include <obd_support.h>
#include <obd_class.h> #include <obd_class.h>

View File

@ -41,7 +41,7 @@
#define DEBUG_SUBSYSTEM S_CLASS #define DEBUG_SUBSYSTEM S_CLASS
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/module.h> #include <linux/module.h>

View File

@ -39,7 +39,7 @@
#define DEBUG_SUBSYSTEM S_CLASS #define DEBUG_SUBSYSTEM S_CLASS
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd.h> #include <obd.h>
#include <obd_class.h> #include <obd_class.h>

View File

@ -35,7 +35,7 @@
#define DEBUG_SUBSYSTEM S_CLASS #define DEBUG_SUBSYSTEM S_CLASS
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_support.h> #include <obd_support.h>
#include <obd_class.h> #include <obd_class.h>

View File

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

View File

@ -43,7 +43,7 @@
#ifndef OSC_CL_INTERNAL_H #ifndef OSC_CL_INTERNAL_H
#define OSC_CL_INTERNAL_H #define OSC_CL_INTERNAL_H
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd.h> #include <obd.h>
/* osc_build_res_name() */ /* osc_build_res_name() */

View File

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

View File

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

View File

@ -26,7 +26,7 @@
* Copyright (c) 2013, Intel Corporation. * Copyright (c) 2013, Intel Corporation.
*/ */
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <lustre_errno.h> #include <lustre_errno.h>
/* /*

View File

@ -33,7 +33,7 @@
#define DEBUG_SUBSYSTEM S_RPC #define DEBUG_SUBSYSTEM S_RPC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
# ifdef __mips64__ # ifdef __mips64__
# include <linux/kernel.h> # include <linux/kernel.h>
# endif # endif

View File

@ -39,7 +39,7 @@
#define DEBUG_SUBSYSTEM S_LOG #define DEBUG_SUBSYSTEM S_LOG
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_class.h> #include <obd_class.h>
#include <lustre_log.h> #include <lustre_log.h>

View File

@ -43,7 +43,7 @@
#define DEBUG_SUBSYSTEM S_LOG #define DEBUG_SUBSYSTEM S_LOG
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_class.h> #include <obd_class.h>
#include <lustre_log.h> #include <lustre_log.h>

View File

@ -41,7 +41,7 @@
#include <obd_class.h> #include <obd_class.h>
#include <lustre_net.h> #include <lustre_net.h>
#include <lprocfs_status.h> #include <lprocfs_status.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include "ptlrpc_internal.h" #include "ptlrpc_internal.h"
/** /**

View File

@ -46,7 +46,7 @@
#define DEBUG_SUBSYSTEM S_RPC #define DEBUG_SUBSYSTEM S_RPC
#include <obd_support.h> #include <obd_support.h>
#include <obd_class.h> #include <obd_class.h>
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include "ptlrpc_internal.h" #include "ptlrpc_internal.h"
/** /**

View File

@ -41,7 +41,7 @@
#define DEBUG_SUBSYSTEM S_RPC #define DEBUG_SUBSYSTEM S_RPC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lustre/lustre_fiemap.h> #include <uapi/linux/lustre/lustre_fiemap.h>

View File

@ -52,7 +52,7 @@
#define DEBUG_SUBSYSTEM S_RPC #define DEBUG_SUBSYSTEM S_RPC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <lustre_net.h> #include <lustre_net.h>
#include <lustre_lib.h> #include <lustre_lib.h>

View File

@ -36,7 +36,7 @@
*/ */
#define DEBUG_SUBSYSTEM S_RPC #define DEBUG_SUBSYSTEM S_RPC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_support.h> #include <obd_support.h>
#include <lustre_ha.h> #include <lustre_ha.h>

View File

@ -37,7 +37,7 @@
#define DEBUG_SUBSYSTEM S_SEC #define DEBUG_SUBSYSTEM S_SEC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/crypto.h> #include <linux/crypto.h>
#include <linux/cred.h> #include <linux/cred.h>
#include <linux/key.h> #include <linux/key.h>

View File

@ -37,7 +37,7 @@
#define DEBUG_SUBSYSTEM S_SEC #define DEBUG_SUBSYSTEM S_SEC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd.h> #include <obd.h>
#include <obd_cksum.h> #include <obd_cksum.h>

View File

@ -33,7 +33,7 @@
#define DEBUG_SUBSYSTEM S_SEC #define DEBUG_SUBSYSTEM S_SEC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/crypto.h> #include <linux/crypto.h>
#include <linux/key.h> #include <linux/key.h>

View File

@ -37,7 +37,7 @@
#define DEBUG_SUBSYSTEM S_SEC #define DEBUG_SUBSYSTEM S_SEC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <obd_support.h> #include <obd_support.h>
#include <obd_class.h> #include <obd_class.h>

View File

@ -35,7 +35,7 @@
#define DEBUG_SUBSYSTEM S_SEC #define DEBUG_SUBSYSTEM S_SEC
#include <linux/libcfs/libcfs.h> #include <linux/libcfs/libcfs_all.h>
#include <linux/crypto.h> #include <linux/crypto.h>
#include <obd.h> #include <obd.h>