staging: lustre: lustre: cleanup paths for lustre internal headers
Rationalize include paths for the lustre internal headers Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fcda61a9f2
commit
8c355a7a33
@ -88,8 +88,8 @@
|
||||
/*
|
||||
* super-class definitions.
|
||||
*/
|
||||
#include "lu_object.h"
|
||||
#include "lustre_compat.h"
|
||||
#include <lu_object.h>
|
||||
#include <lustre_compat.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/radix-tree.h>
|
||||
|
@ -48,7 +48,7 @@
|
||||
#ifndef _LLOG_SWAB_H_
|
||||
#define _LLOG_SWAB_H_
|
||||
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
struct lustre_cfg;
|
||||
|
||||
|
@ -43,9 +43,9 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_cfg.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <uapi/linux/lustre/lustre_cfg.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
struct lprocfs_vars {
|
||||
const char *name;
|
||||
|
@ -35,9 +35,9 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <linux/percpu_counter.h>
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include "lu_ref.h"
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
#include <lu_ref.h>
|
||||
|
||||
struct seq_file;
|
||||
struct lustre_cfg;
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include <linux/namei.h>
|
||||
#include <linux/cred.h>
|
||||
|
||||
#include "lustre_patchless_compat.h"
|
||||
#include <lustre_patchless_compat.h>
|
||||
|
||||
/*
|
||||
* set ATTR_BLOCKS to a high value to avoid any risk of collision with other
|
||||
|
@ -38,8 +38,8 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "lustre_net.h"
|
||||
#include "obd.h"
|
||||
#include <lustre_net.h>
|
||||
#include <obd.h>
|
||||
|
||||
/* lib/debug.c */
|
||||
int dump_req(struct ptlrpc_request *req);
|
||||
|
@ -44,8 +44,10 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include <asm/byteorder.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/backing-dev.h>
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
|
||||
/****************** persistent mount data *********************/
|
||||
|
||||
|
@ -44,12 +44,12 @@
|
||||
#ifndef _LUSTRE_DLM_H__
|
||||
#define _LUSTRE_DLM_H__
|
||||
|
||||
#include "lustre_lib.h"
|
||||
#include "lustre_net.h"
|
||||
#include "lustre_import.h"
|
||||
#include "lustre_handles.h"
|
||||
#include "interval_tree.h" /* for interval_node{}, ldlm_extent */
|
||||
#include "lu_ref.h"
|
||||
#include <lustre_lib.h>
|
||||
#include <lustre_net.h>
|
||||
#include <lustre_import.h>
|
||||
#include <lustre_handles.h>
|
||||
#include <interval_tree.h> /* for interval_node{}, ldlm_extent */
|
||||
#include <lu_ref.h>
|
||||
|
||||
#include "lustre_dlm_flags.h"
|
||||
|
||||
|
@ -42,9 +42,9 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "lprocfs_status.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include "lustre_dlm.h"
|
||||
#include <lprocfs_status.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
#include <lustre_dlm.h>
|
||||
|
||||
enum obd_option {
|
||||
OBD_OPT_FORCE = 0x0001,
|
||||
|
@ -148,10 +148,10 @@
|
||||
* Even so, the MDT and OST resources are also in different LDLM namespaces.
|
||||
*/
|
||||
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_fid.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_ostid.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>
|
||||
|
||||
struct lu_env;
|
||||
struct lu_site;
|
||||
|
@ -38,9 +38,9 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "seq_range.h"
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <seq_range.h>
|
||||
|
||||
struct lu_client_fld;
|
||||
struct lu_server_fld;
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
|
||||
struct portals_handle_ops {
|
||||
void (*hop_addref)(void *object);
|
||||
|
@ -43,8 +43,8 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "lustre_handles.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <lustre_handles.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
/**
|
||||
* Adaptive Timeout stuff
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define __LUSTRE_KERNELCOMM_H__
|
||||
|
||||
/* For declarations shared with userspace */
|
||||
#include "../../include/uapi/linux/lustre/lustre_kernelcomm.h"
|
||||
#include <uapi/linux/lustre/lustre_kernelcomm.h>
|
||||
|
||||
/* prototype for callback function on kuc groups */
|
||||
typedef int (*libcfs_kkuc_cb_t)(void *data, void *cb_arg);
|
||||
|
@ -45,18 +45,18 @@
|
||||
#include <linux/sched/signal.h>
|
||||
#include <linux/signal.h>
|
||||
#include <linux/types.h>
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_ver.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_cfg.h"
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
#include <uapi/linux/lustre/lustre_ver.h>
|
||||
#include <uapi/linux/lustre/lustre_cfg.h>
|
||||
|
||||
/* target.c */
|
||||
struct ptlrpc_request;
|
||||
struct obd_export;
|
||||
struct lu_target;
|
||||
struct l_wait_info;
|
||||
#include "lustre_ha.h"
|
||||
#include "lustre_net.h"
|
||||
#include <lustre_ha.h>
|
||||
#include <lustre_net.h>
|
||||
|
||||
#define LI_POISON 0x5a5a5a5a
|
||||
#if BITS_PER_LONG > 32
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#ifndef _LUSTRE_LMV_H
|
||||
#define _LUSTRE_LMV_H
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
struct lmv_oinfo {
|
||||
struct lu_fid lmo_fid;
|
||||
|
@ -52,8 +52,8 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "obd_class.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <obd_class.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
#define LOG_NAME_LIMIT(logname, name) \
|
||||
snprintf(logname, sizeof(logname), "LOGS/%s", name)
|
||||
|
@ -46,13 +46,13 @@
|
||||
|
||||
#include <linux/fs.h>
|
||||
#include <linux/dcache.h>
|
||||
#include "lustre_intent.h"
|
||||
#include "lustre_handles.h"
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "obd_class.h"
|
||||
#include "lustre_lib.h"
|
||||
#include "lustre_dlm.h"
|
||||
#include "lustre_export.h"
|
||||
#include <lustre_intent.h>
|
||||
#include <lustre_handles.h>
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <obd_class.h>
|
||||
#include <lustre_lib.h>
|
||||
#include <lustre_dlm.h>
|
||||
#include <lustre_export.h>
|
||||
|
||||
struct ptlrpc_client;
|
||||
struct obd_export;
|
||||
|
@ -43,11 +43,11 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include "lustre_handles.h"
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "lustre_lib.h"
|
||||
#include "lustre_dlm.h"
|
||||
#include "lustre_export.h"
|
||||
#include <lustre_handles.h>
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <lustre_lib.h>
|
||||
#include <lustre_dlm.h>
|
||||
#include <lustre_export.h>
|
||||
|
||||
struct mds_group_info {
|
||||
struct obd_uuid *uuid;
|
||||
|
@ -51,20 +51,20 @@
|
||||
*/
|
||||
|
||||
#include <linux/uio.h>
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "../../include/uapi/linux/lnet/nidstr.h"
|
||||
#include "../../include/linux/lnet/api.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include "lustre_errno.h"
|
||||
#include "lustre_ha.h"
|
||||
#include "lustre_sec.h"
|
||||
#include "lustre_import.h"
|
||||
#include "lprocfs_status.h"
|
||||
#include "lu_object.h"
|
||||
#include "lustre_req_layout.h"
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <uapi/linux/lnet/nidstr.h>
|
||||
#include <linux/lnet/api.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
#include <lustre_errno.h>
|
||||
#include <lustre_ha.h>
|
||||
#include <lustre_sec.h>
|
||||
#include <lustre_import.h>
|
||||
#include <lprocfs_status.h>
|
||||
#include <lu_object.h>
|
||||
#include <lustre_req_layout.h>
|
||||
|
||||
#include "obd_support.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_ver.h"
|
||||
#include <obd_support.h>
|
||||
#include <uapi/linux/lustre/lustre_ver.h>
|
||||
|
||||
/* MD flags we _always_ use */
|
||||
#define PTLRPC_MD_OPTIONS 0
|
||||
@ -522,7 +522,7 @@ struct lu_env;
|
||||
|
||||
struct ldlm_lock;
|
||||
|
||||
#include "lustre_nrs.h"
|
||||
#include <lustre_nrs.h>
|
||||
|
||||
/**
|
||||
* Basic request prioritization operations structure.
|
||||
|
@ -669,7 +669,7 @@ enum {
|
||||
NRS_RES_MAX
|
||||
};
|
||||
|
||||
#include "lustre_nrs_fifo.h"
|
||||
#include <lustre_nrs_fifo.h>
|
||||
|
||||
/**
|
||||
* NRS request
|
||||
|
@ -35,7 +35,7 @@
|
||||
#ifndef _LUSTRE_OBDO_H_
|
||||
#define _LUSTRE_OBDO_H_
|
||||
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
/**
|
||||
* Create an obdo to send over the wire
|
||||
|
@ -48,7 +48,7 @@
|
||||
#ifndef _LUSTRE_SWAB_H_
|
||||
#define _LUSTRE_SWAB_H_
|
||||
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb);
|
||||
void lustre_swab_connect(struct obd_connect_data *ocd);
|
||||
|
@ -35,15 +35,15 @@
|
||||
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include "lustre_lib.h"
|
||||
#include "lu_ref.h"
|
||||
#include "lustre_export.h"
|
||||
#include "lustre_fid.h"
|
||||
#include "lustre_fld.h"
|
||||
#include "lustre_handles.h"
|
||||
#include "lustre_intent.h"
|
||||
#include "cl_object.h"
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
#include <lustre_lib.h>
|
||||
#include <lu_ref.h>
|
||||
#include <lustre_export.h>
|
||||
#include <lustre_fid.h>
|
||||
#include <lustre_fld.h>
|
||||
#include <lustre_handles.h>
|
||||
#include <lustre_intent.h>
|
||||
#include <cl_object.h>
|
||||
|
||||
#define MAX_OBD_DEVICES 8192
|
||||
|
||||
|
@ -30,9 +30,9 @@
|
||||
|
||||
#ifndef __OBD_CKSUM
|
||||
#define __OBD_CKSUM
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "../../include/linux/libcfs/libcfs_crypto.h"
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <linux/libcfs/libcfs_crypto.h>
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
static inline unsigned char cksum_obd2cfs(enum cksum_type cksum_type)
|
||||
{
|
||||
|
@ -32,12 +32,12 @@
|
||||
#ifndef __CLASS_OBD_H
|
||||
#define __CLASS_OBD_H
|
||||
|
||||
#include "obd_support.h"
|
||||
#include "lustre_import.h"
|
||||
#include "lustre_net.h"
|
||||
#include "obd.h"
|
||||
#include "lustre_lib.h"
|
||||
#include "lprocfs_status.h"
|
||||
#include <obd_support.h>
|
||||
#include <lustre_import.h>
|
||||
#include <lustre_net.h>
|
||||
#include <obd.h>
|
||||
#include <lustre_lib.h>
|
||||
#include <lprocfs_status.h>
|
||||
|
||||
#define OBD_STATFS_NODELAY 0x0001 /* requests should be send without delay
|
||||
* and resends for avoid deadlocks
|
||||
|
@ -36,9 +36,9 @@
|
||||
#include <linux/slab.h>
|
||||
#include <linux/sched/signal.h>
|
||||
|
||||
#include "../../include/linux/libcfs/libcfs.h"
|
||||
#include "lustre_compat.h"
|
||||
#include "lprocfs_status.h"
|
||||
#include <linux/libcfs/libcfs.h>
|
||||
#include <lustre_compat.h>
|
||||
#include <lprocfs_status.h>
|
||||
|
||||
/* global variables */
|
||||
extern unsigned int obd_debug_peer_on_timeout;
|
||||
|
@ -34,7 +34,7 @@
|
||||
#ifndef _SEQ_RANGE_H_
|
||||
#define _SEQ_RANGE_H_
|
||||
|
||||
#include "../../include/uapi/linux/lustre/lustre_idl.h"
|
||||
#include <uapi/linux/lustre/lustre_idl.h>
|
||||
|
||||
/**
|
||||
* computes the sequence range type \a range
|
||||
|
Loading…
Reference in New Issue
Block a user