* sorted fld entries. */
struct list_head fci_entries_head;
- /**
- * Cache statistics. */
- struct fld_stats fci_stat;
+ /**
+ * Cache statistics.
+ */
+ struct fld_stats fci_stat;
- /**
- * Cache name used for debug and messages. */
- char fci_name[80];
+ /**
+ * Cache name used for debug and messages.
+ */
+ char fci_name[LUSTRE_MDT_MAXNAMELEN];
};
enum {
#include <uapi/linux/lustre/lustre_idl.h>
#include <uapi/linux/lustre/lustre_ostid.h>
+/* Lustre service names are following the format
+ * service name + MDT + seq name
+ */
+#define LUSTRE_MDT_MAXNAMELEN 80
+
struct lu_env;
struct lu_site;
struct lu_context;
/* LUSTRE_SEQ_METADATA or LUSTRE_SEQ_DATA */
enum lu_cli_type lcs_type;
- /*
- * Service uuid, passed from MDT + seq name to form unique seq name to
+ /*
+ * Service uuid, passed from MDT + seq name to form unique seq name to
* use it with debugfs.
- */
- char lcs_name[80];
+ */
+ char lcs_name[LUSTRE_MDT_MAXNAMELEN];
/*
* Sequence width, that is how many objects may be allocated in one
/* Mutex for protecting allocation */
struct mutex lss_mutex;
- /*
- * Service uuid, passed from MDT + seq name to form unique seq name to
+ /*
+ * Service uuid, passed from MDT + seq name to form unique seq name to
* use it with debugfs.
- */
- char lss_name[80];
+ */
+ char lss_name[LUSTRE_MDT_MAXNAMELEN];
/*
* Allocation chunks for super and meta sequences. Default values are
#include <uapi/linux/lustre/lustre_idl.h>
#include <libcfs/libcfs.h>
#include <seq_range.h>
+#include <lustre_fid.h>
struct lu_env;
struct lu_client_fld;
* Protect index modifications */
struct mutex lsf_lock;
- /**
- * Fld service name in form "fld-srv-lustre-MDTXXX" */
- char lsf_name[80];
+ /**
+ * Fld service name in form "fld-srv-lustre-MDTXXX"
+ */
+ char lsf_name[LUSTRE_MDT_MAXNAMELEN];
int (*lsf_seq_lookup)(const struct lu_env *env,
struct lu_server_fld *fld, u64 seq,
* Client FLD cache. */
struct fld_cache *lcf_cache;
- /**
+ /**
* Client fld debugfs entry name.
*/
- char lcf_name[80];
+ char lcf_name[LUSTRE_MDT_MAXNAMELEN];
};
/* Server methods */