@@ -840,7 +840,7 @@ static ssize_t osc_stats_seq_write(struct file *file,
LDEBUGFS_SEQ_FOPS(osc_stats);
-void lproc_osc_attach_seqstat(struct obd_device *obd)
+static void ldebugfs_osc_attach_seqstat(struct obd_device *obd)
{
debugfs_create_file("osc_stats", 0644, obd->obd_debugfs_entry, obd,
&osc_stats_fops);
@@ -884,17 +884,14 @@ int osc_tunables_init(struct obd_device *obd)
if (rc)
return rc;
+ ldebugfs_osc_attach_seqstat(obd);
+
rc = sptlrpc_lprocfs_cliobd_attach(obd);
if (rc) {
lprocfs_obd_cleanup(obd);
return rc;
}
- debugfs_create_file("osc_stats", 0644, obd->obd_debugfs_entry, obd,
- &osc_stats_fops);
- debugfs_create_file("rpc_stats", 0644, obd->obd_debugfs_entry, obd,
- &osc_rpc_stats_fops);
-
ptlrpc_lprocfs_register_obd(obd);
return 0;
}
@@ -937,8 +937,8 @@ int osc_fsync_ost(const struct lu_env *env, struct osc_object *obj,
}
EXPORT_SYMBOL(osc_fsync_ost);
-int osc_io_fsync_start(const struct lu_env *env,
- const struct cl_io_slice *slice)
+static int osc_io_fsync_start(const struct lu_env *env,
+ const struct cl_io_slice *slice)
{
struct cl_io *io = slice->cis_io;
struct cl_fsync_io *fio = &io->u.ci_fsync;
@@ -2927,10 +2927,11 @@ static int osc_set_lock_data(struct ldlm_lock *lock, void *data)
return set;
}
-int osc_enqueue_fini(struct ptlrpc_request *req, osc_enqueue_upcall_f upcall,
- void *cookie, struct lustre_handle *lockh,
- enum ldlm_mode mode, u64 *flags, int speculative,
- int errcode)
+static int osc_enqueue_fini(struct ptlrpc_request *req,
+ osc_enqueue_upcall_f upcall,
+ void *cookie, struct lustre_handle *lockh,
+ enum ldlm_mode mode, u64 *flags,
+ int speculative, int errcode)
{
bool intent = *flags & LDLM_FL_HAS_INTENT;
int rc;
@@ -2962,8 +2963,9 @@ int osc_enqueue_fini(struct ptlrpc_request *req, osc_enqueue_upcall_f upcall,
return rc;
}
-int osc_enqueue_interpret(const struct lu_env *env, struct ptlrpc_request *req,
- void *args, int rc)
+static int osc_enqueue_interpret(const struct lu_env *env,
+ struct ptlrpc_request *req,
+ void *args, int rc)
{
struct osc_enqueue_args *aa = args;
struct ldlm_lock *lock;