CFS_TCD_TYPE_CNT
};
-union cfs_trace_data_union (*cfs_trace_data[CFS_TCD_TYPE_CNT])[NR_CPUS] __cacheline_aligned;
+static union cfs_trace_data_union (*cfs_trace_data[CFS_TCD_TYPE_CNT])[NR_CPUS] __cacheline_aligned;
/* Pages containing records already processed by daemon.
* Link via ->lru, use size in ->private
char cfs_tracefile[TRACEFILE_NAME_SIZE];
long long cfs_tracefile_size = CFS_TRACEFILE_SIZE;
-struct task_struct *tctl_task;
+static struct task_struct *tctl_task;
static atomic_t cfs_tage_allocated = ATOMIC_INIT(0);
static DECLARE_RWSEM(cfs_tracefile_sem);
#define ERROR_PRINT_DEADLINE 3600
-atomic_t nvfs_shutdown = ATOMIC_INIT(1);
-struct nvfs_dma_rw_ops *nvfs_ops = NULL;
-struct percpu_counter nvfs_n_ops;
+static atomic_t nvfs_shutdown = ATOMIC_INIT(1);
+static struct nvfs_dma_rw_ops *nvfs_ops;
+static struct percpu_counter nvfs_n_ops;
static inline long nvfs_count_ops(void)
{
static DEFINE_MUTEX(ldlm_ref_mutex);
static int ldlm_refcount;
-struct kobject *ldlm_kobj;
+static struct kobject *ldlm_kobj;
struct kset *ldlm_ns_kset;
struct kset *ldlm_svc_kset;
EXIT;
}
-const struct lfsck_assistant_operations lfsck_namespace_assistant_ops = {
+static const struct lfsck_assistant_operations lfsck_namespace_assistant_ops = {
.la_handler_p1 = lfsck_namespace_assistant_handler_p1,
.la_handler_p2 = lfsck_namespace_assistant_handler_p2,
.la_fill_pos = lfsck_namespace_assistant_fill_pos,
.proc_release = seq_release,
};
-struct lprocfs_vars lprocfs_lmv_obd_vars[] = {
+static struct lprocfs_vars lprocfs_lmv_obd_vars[] = {
{ .name = "qos_exclude_prefixes",
.fops = &qos_exclude_prefixes_fops },
{ .name = "target_obd",
struct kmem_cache *lod_object_kmem;
/* Slab for dt_txn_callback */
-struct kmem_cache *lod_txn_callback_kmem;
+static struct kmem_cache *lod_txn_callback_kmem;
static struct lu_kmem_descr lod_caches[] = {
{
.ckd_cache = &lod_object_kmem,
LDEBUGFS_SEQ_FOPS_RO_TYPE(mdc, state);
LDEBUGFS_SEQ_FOPS_RW_TYPE(mdc, import);
-struct ldebugfs_vars ldebugfs_mdc_obd_vars[] = {
+static struct ldebugfs_vars ldebugfs_mdc_obd_vars[] = {
{ .name = "connect_flags",
.fops = &mdc_connect_flags_fops },
{ .name = "mds_server_uuid",
return item->mop_cb(item, rc);
}
-object_update_interpret_t mdc_update_interpreters[MD_OP_MAX] = {
+static object_update_interpret_t mdc_update_interpreters[MD_OP_MAX] = {
[MD_OP_GETATTR] = mdc_batch_getattr_interpret,
};
return count > 0 ? 0 : count;
}
-const struct lu_device_operations mdc_lu_ops = {
+static const struct lu_device_operations mdc_lu_ops = {
.ldo_object_alloc = mdc_object_alloc,
.ldo_process_config = mdc_process_config,
.ldo_recovery_complete = NULL,
MODULE_PARM_DESC(mds_cpu_bind,
"bind MDS threads to particular CPU partitions");
-int mds_max_io_threads = 512;
+static int mds_max_io_threads = 512;
module_param(mds_max_io_threads, int, 0444);
MODULE_PARM_DESC(mds_max_io_threads,
"maximum number of MDS IO service threads");
LDEBUGFS_SEQ_FOPS_RO(mgc_ir_state);
-struct ldebugfs_vars ldebugfs_mgc_obd_vars[] = {
+static struct ldebugfs_vars ldebugfs_mgc_obd_vars[] = {
{ .name = "connect_flags",
.fops = &mgc_connect_flags_fops },
{ .name = "mgs_server_uuid",
MODULE_PARM_DESC(warn_on_depth, "warning when hash depth is high.");
#endif
-struct workqueue_struct *cfs_rehash_wq;
+static struct workqueue_struct *cfs_rehash_wq;
int cfs_hash_init(void)
{
static struct cfs_hash *jobid_hash;
static struct cfs_hash_ops jobid_hash_ops;
-spinlock_t jobid_hash_lock;
+static spinlock_t jobid_hash_lock;
#define RESCAN_INTERVAL 30
#define DELETE_INTERVAL 300
return 0;
}
-struct ln_key_list stats_params = {
+static struct ln_key_list stats_params = {
.lkl_maxattr = LUSTRE_PARAM_ATTR_MAX,
.lkl_list = {
[LUSTRE_PARAM_ATTR_HDR] = {
#include <obd_class.h>
#include <lprocfs_status.h>
#include <lustre_kernelcomm.h>
+#include <obd_cksum.h>
#ifdef CONFIG_PROC_FS
}
EXPORT_SYMBOL(ldebugfs_nid_stats_clear_seq_write);
-struct ldebugfs_vars ldebugfs_obd_exports_vars[] = {
+static struct ldebugfs_vars ldebugfs_obd_exports_vars[] = {
{ .name = "nodemap",
.fops = &ldebugfs_exp_nodemap_fops },
{ .name = "uuid",
.head_offset = offsetof(struct lu_env_item, lei_linkage),
};
-struct rhashtable lu_env_rhash;
+static struct rhashtable lu_env_rhash;
struct lu_env_percpu {
struct task_struct *lep_task;
}
EXPORT_SYMBOL(scrub_stop);
-const char *const scrub_status_names[] = {
+static const char *const scrub_status_names[] = {
"init",
"scanning",
"completed",
NULL
};
-const char *const scrub_flags_names[] = {
+static const char *const scrub_flags_names[] = {
"recreated",
"inconsistent",
"auto",
NULL
};
-const char *const scrub_param_names[] = {
+static const char *const scrub_param_names[] = {
"failout",
"dryrun",
NULL
#define OSS_SERVICE_WATCHDOG_FACTOR 2
-int oss_max_threads = 512;
+static int oss_max_threads = 512;
module_param(oss_max_threads, int, 0444);
MODULE_PARM_DESC(oss_max_threads, "maximum number of OSS service threads");
LDEBUGFS_SEQ_FOPS_RO_TYPE(osc, state);
LDEBUGFS_SEQ_FOPS_RW_TYPE(osc, import);
-struct ldebugfs_vars ldebugfs_osc_obd_vars[] = {
+static struct ldebugfs_vars ldebugfs_osc_obd_vars[] = {
{ .name = "connect_flags",
.fops = &osc_connect_flags_fops },
{ .name = "ost_server_uuid",
unsigned int ldiskfs_flush_descriptors_cnt = 5000;
/* 1 GiB in 512-byte sectors */
-int ldiskfs_delayed_unlink_blocks = (1 << (30 - 9));
+static int ldiskfs_delayed_unlink_blocks = (1 << (30 - 9));
/* Slab to allocate dynlocks */
struct kmem_cache *dynlock_cachep;
/* Slab to allocate osd_it_ea */
-struct kmem_cache *osd_itea_cachep;
+static struct kmem_cache *osd_itea_cachep;
static struct lu_kmem_descr ldiskfs_caches[] = {
{
LUSTRE_RW_ATTR(extents_dense);
#endif
-struct ldebugfs_vars ldebugfs_osd_obd_vars[] = {
+static struct ldebugfs_vars ldebugfs_osd_obd_vars[] = {
{ .name = "oi_scrub",
.fops = &ldiskfs_osd_oi_scrub_fops },
{ NULL }
NULL,
};
-struct ldebugfs_vars ldebugfs_osd_obd_vars[] = {
+static struct ldebugfs_vars ldebugfs_osd_obd_vars[] = {
{ .name = "oi_scrub",
.fops = &zfs_osd_oi_scrub_fops },
{ 0 }
static LIST_HEAD(nodemap_pde_list);
/* nodemap debugfs root directory under lustre */
-struct dentry *nodemap_root;
+static struct dentry *nodemap_root;
/**
* Reads and prints the idmap for the given nodemap.
}
-struct nrs_tbf_ops nrs_tbf_opcode_ops = {
+static struct nrs_tbf_ops nrs_tbf_opcode_ops = {
.o_name = NRS_TBF_TYPE_OPCODE,
.o_startup = nrs_tbf_opcode_startup,
.o_cli_find = nrs_tbf_opcode_cli_find,
OBD_FREE_STR(rule->tr_ids_str);
}
-struct nrs_tbf_ops nrs_tbf_uid_ops = {
+static struct nrs_tbf_ops nrs_tbf_uid_ops = {
.o_name = NRS_TBF_TYPE_UID,
.o_startup = nrs_tbf_id_startup,
.o_cli_find = nrs_tbf_id_cli_find,
.o_rule_fini = nrs_tbf_id_rule_fini,
};
-struct nrs_tbf_ops nrs_tbf_gid_ops = {
+static struct nrs_tbf_ops nrs_tbf_gid_ops = {
.o_name = NRS_TBF_TYPE_GID,
.o_startup = nrs_tbf_id_startup,
.o_cli_find = nrs_tbf_id_cli_find,
struct kmem_cache *lqe_kmem;
-struct lu_kmem_descr lquota_caches[] = {
+static struct lu_kmem_descr lquota_caches[] = {
{
.ckd_cache = &lqe_kmem,
.ckd_name = "lqe_kmem",
#include "tgt_internal.h"
-int lbug_on_grant_miscount;
+static int lbug_on_grant_miscount;
module_param(lbug_on_grant_miscount, int, 0644);
MODULE_PARM_DESC(lbug_on_grant_miscount, "LBUG on grant miscount");
}
EXPORT_SYMBOL(tgt_register_lfsck_in_notify_local);
-int (*tgt_lfsck_in_notify)(const struct lu_env *env,
- struct dt_device *key,
- struct lfsck_request *lr) = NULL;
+static int (*tgt_lfsck_in_notify)(const struct lu_env *env,
+ struct dt_device *key,
+ struct lfsck_request *lr) = NULL;
void tgt_register_lfsck_in_notify(int (*notify)(const struct lu_env *,
struct dt_device *,
#include <obd_target.h>
#include <obd_cksum.h>
#include "tgt_internal.h"
+#include "lu_target.h"
#include "../ptlrpc/ptlrpc_internal.h"
/* This must be longer than the longest string below */