staging: lustre: remove libcfs_all.h from lustre/include/*.h

Instead of the catch-all libcfs_all.h, just include the
files actually needed in different places.

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 fd998c02dc
commit 73d65c8d1a
30 changed files with 34 additions and 13 deletions

View File

@ -29,6 +29,9 @@
#ifndef _LIBCFS_CRYPTO_H
#define _LIBCFS_CRYPTO_H
#include <linux/string.h>
struct page;
struct cfs_crypto_hash_type {
char *cht_name; /*< hash algorithm name, equal to
* format name for crypto api

View File

@ -43,8 +43,8 @@
#include <linux/seq_file.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/libcfs/libcfs_all.h>
#include <uapi/linux/lustre/lustre_cfg.h>
#include <uapi/linux/lustre/lustre_idl.h>

View File

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

View File

@ -37,6 +37,7 @@
#include <linux/fs_struct.h>
#include <linux/namei.h>
#include <linux/cred.h>
#include <linux/module.h>
#include <lustre_patchless_compat.h>

View File

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

View File

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

View File

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

View File

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

View File

@ -44,6 +44,7 @@
* @{
*/
#include <linux/libcfs/libcfs.h>
#include <lustre_handles.h>
#include <uapi/linux/lustre/lustre_idl.h>

View File

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

View File

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

View File

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

View File

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

View File

@ -39,6 +39,7 @@
#include <linux/list.h>
#include <linux/mm.h>
#include <linux/hash.h>
#include <linux/pagemap.h>
#define ll_delete_from_page_cache(page) delete_from_page_cache(page)

View File

@ -34,6 +34,8 @@
#ifndef _LUSTRE_SEC_H_
#define _LUSTRE_SEC_H_
#include <linux/module.h>
/** \defgroup sptlrpc sptlrpc
*
* @{

View File

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

View File

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

View File

@ -62,6 +62,7 @@
#include <lustre_dlm.h>
#include <obd_class.h>
#include <obd.h>
#include <linux/libcfs/libcfs_hash.h>
#include "ldlm_internal.h"

View File

@ -41,6 +41,7 @@
#include <lustre_fid.h>
#include <obd_class.h>
#include "ldlm_internal.h"
#include <linux/libcfs/libcfs_hash.h>
struct kmem_cache *ldlm_resource_slab, *ldlm_lock_slab;

View File

@ -37,11 +37,13 @@
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/mm.h>
#include <linux/file.h>
#include <asm/div64.h>
#include <linux/seq_file.h>
#include <linux/namei.h>
#include <linux/uaccess.h>
#include <linux/libcfs/libcfs.h>
#include <obd_support.h>
#include <lustre_net.h>
#include <obd_class.h>

View File

@ -38,6 +38,8 @@
# include <linux/miscdevice.h>
# include <linux/init.h>
# include <linux/utsname.h>
# include <linux/file.h>
# include <linux/kthread.h>
#include <lustre_errno.h>
#include <cl_object.h>

View File

@ -35,6 +35,7 @@
#include <linux/atomic.h>
#include <linux/miscdevice.h>
#include <linux/libcfs/libcfs.h>
#include <obd_support.h>
#include <obd_class.h>
@ -44,6 +45,7 @@
#include <linux/list.h>
#include <cl_object.h>
#include <uapi/linux/lustre/lustre_ioctl.h>
#include <uapi/linux/lnet/libcfs_ioctl.h>
#include "llog_internal.h"
struct obd_device *obd_devs[MAX_OBD_DEVICES];

View File

@ -39,6 +39,8 @@
#define DEBUG_SUBSYSTEM S_CLASS
#define D_KUC D_OTHER
#include <linux/file.h>
#include <linux/libcfs/libcfs.h>
#include <obd_support.h>
#include <lustre_kernelcomm.h>

View File

@ -44,6 +44,7 @@
#define DEBUG_SUBSYSTEM S_LOG
#include <linux/kthread.h>
#include <llog_swab.h>
#include <lustre_log.h>
#include <obd_class.h>

View File

@ -41,6 +41,7 @@
#include <linux/module.h>
#include <lprocfs_status.h>
#include <obd_support.h>
#include <linux/libcfs/libcfs.h>
void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount)
{

View File

@ -37,6 +37,7 @@
#define DEBUG_SUBSYSTEM S_CLASS
#include <linux/random.h>
#include <obd_support.h>
#include <lustre_handles.h>
#include <lustre_lib.h>

View File

@ -41,6 +41,7 @@
#define D_MOUNT (D_SUPER | D_CONFIG/*|D_WARNING */)
#define PRINT_CMD CDEBUG
#include <linux/random.h>
#include <obd.h>
#include <lustre_compat.h>
#include <obd_class.h>

View File

@ -35,6 +35,8 @@
#define DEBUG_SUBSYSTEM S_RPC
#include <linux/libcfs/libcfs_cpu.h>
#include <linux/random.h>
#include <obd_support.h>
#include <obd_class.h>
#include <lustre_lib.h>

View File

@ -37,6 +37,7 @@
#define DEBUG_SUBSYSTEM S_RPC
#include <linux/kthread.h>
#include <obd_support.h>
#include <lustre_ha.h>
#include <lustre_net.h>

View File

@ -33,12 +33,15 @@
#define DEBUG_SUBSYSTEM S_RPC
#include <linux/kthread.h>
#include <obd_support.h>
#include <obd_class.h>
#include <lustre_net.h>
#include <lu_object.h>
#include <uapi/linux/lnet/lnet-types.h>
#include "ptlrpc_internal.h"
#include <linux/libcfs/libcfs_cpu.h>
#include <linux/libcfs/libcfs_string.h>
/* The following are visible and mutable through /sys/module/ptlrpc */
int test_req_buffer_pressure;