}
EXPORT_SYMBOL(class_name2obd);
-int class_uuid2dev_nolock(struct obd_uuid *uuid)
+static int class_uuid2dev_nolock(struct obd_uuid *uuid)
{
int i;
/* Creates a new export, adds it to the hash table, and returns a
* pointer to it. The refcount is 2: one for the hash reference, and
* one for the pointer returned by this function. */
-struct obd_export *__class_new_export(struct obd_device *obd,
- struct obd_uuid *cluuid, bool is_self)
+static struct obd_export *__class_new_export(struct obd_device *obd,
+ struct obd_uuid *cluuid,
+ bool is_self)
{
struct obd_export *export;
int rc = 0;
* then an upcall could be issued here to get the jobid by utilizing
* the userspace tools/API. Then, the jobid must be cached.
*/
-int jobid_get_from_environ(char *jobid_var, char *jobid, int *jobid_len)
+static int jobid_get_from_environ(char *jobid_var, char *jobid, int *jobid_len)
{
int rc;
}
#endif
-int lustre_device_done(struct netlink_callback *cb)
+static int lustre_device_done(struct netlink_callback *cb)
{
struct genl_dev_list *glist;
* \retval pointer to the directory if it is found.
* \retval ERR_PTR(negative errno) if it fails.
*/
-struct dt_object *llog_osd_get_regular_fid_dir(const struct lu_env *env,
- struct dt_object *dto)
+static struct dt_object *llog_osd_get_regular_fid_dir(const struct lu_env *env,
+ struct dt_object *dto)
{
struct llog_thread_info *lgi = llog_info(env);
struct seq_server_site *ss = dto->do_lu.lo_dev->ld_site->ld_seq_site;
#include <lustre_log.h>
#include <lustre_update.h>
+#include <llog_swab.h>
static void print_llogd_body(struct llogd_body *d)
{
return ret;
}
-struct ls_device *ls_find_dev(struct dt_device *dev)
-{
- struct ls_device *ls;
-
- mutex_lock(&ls_list_mutex);
- ls = __ls_find_dev(dev);
- mutex_unlock(&ls_list_mutex);
-
- return ls;
-}
-
static const struct lu_device_type_operations ls_device_type_ops = {
.ldto_start = NULL,
.ldto_stop = NULL,
EXPORT_SYMBOL(lprocfs_recovery_stale_clients_seq_show);
#ifdef CONFIG_PROC_FS
-
-int lprocfs_evict_client_open(struct inode *inode, struct file *f)
-{
- struct obd_device *obd = pde_data(file_inode(f));
-
- atomic_inc(&obd->obd_evict_inprogress);
- return 0;
-}
-
-int lprocfs_evict_client_release(struct inode *inode, struct file *f)
-{
- struct obd_device *obd = pde_data(file_inode(f));
-
- atomic_dec(&obd->obd_evict_inprogress);
- wake_up(&obd->obd_evict_inprogress_waitq);
-
- return 0;
-}
-
#define BUFLEN (UUID_MAX + 5)
ssize_t
}
LPROC_SEQ_FOPS_RO(lprocfs_exp_hash);
-int lprocfs_exp_print_replydata_seq(struct obd_export *exp, void *cb_data)
+static int lprocfs_exp_print_replydata_seq(struct obd_export *exp,
+ void *cb_data)
{
struct seq_file *m = cb_data;
return 0;
}
-int lprocfs_exp_replydata_seq_show(struct seq_file *m, void *data)
+static int lprocfs_exp_replydata_seq_show(struct seq_file *m, void *data)
{
struct nid_stat *stats = m->private;
}
LPROC_SEQ_FOPS_RO(lprocfs_exp_replydata);
-int lprocfs_exp_print_fmd_count_seq(struct obd_export *exp, void *cb_data)
+static int lprocfs_exp_print_fmd_count_seq(struct obd_export *exp,
+ void *cb_data)
{
struct seq_file *m = cb_data;
struct tg_export_data *ted = &exp->exp_target_data;
return 0;
}
-int lprocfs_exp_fmd_count_seq_show(struct seq_file *m, void *data)
+static int lprocfs_exp_fmd_count_seq_show(struct seq_file *m, void *data)
{
struct nid_stat *stats = m->private;
#endif /* HAVE_SHRINKER_COUNT */
-
-/*
- * Debugging stuff.
- */
-
-/**
- * Environment to be used in debugger, contains all tags.
- */
-static struct lu_env lu_debugging_env;
-
-/**
- * Debugging printer function using printk().
- */
-int lu_printk_printer(const struct lu_env *env,
- void *unused, const char *format, ...)
-{
- va_list args;
-
- va_start(args, format);
- vprintk(format, args);
- va_end(args);
- return 0;
-}
-
-int lu_debugging_setup(void)
-{
- return lu_env_init(&lu_debugging_env, ~0);
-}
-
-void lu_context_keys_dump(void)
-{
- unsigned int i;
-
- for (i = 0; i < ARRAY_SIZE(lu_keys); ++i) {
- struct lu_context_key *key;
-
- key = lu_keys[i];
- if (key != NULL) {
- CERROR("LU context keys [%d]: %p %x (%p,%p,%p) %d %d \"%s\"@%p\n",
- i, key, key->lct_tags,
- key->lct_init, key->lct_fini, key->lct_exit,
- key->lct_index, atomic_read(&key->lct_used),
- key->lct_owner ? key->lct_owner->name : "",
- key->lct_owner);
- lu_ref_print(&key->lct_reference);
- }
- }
-}
-
/**
* Initialization of global lu_* data.
*/