#include <lustre_barrier.h>
#include <uapi/linux/lustre/lustre_barrier_user.h>
+#include "tgt_internal.h"
+
static LIST_HEAD(barrier_instance_list);
static DEFINE_SPINLOCK(barrier_instance_lock);
* \retval 0 if packing succeeds.
* \retval -E2BIG if packing exceeds the maximum length.
*/
-int out_update_header_pack(const struct lu_env *env,
- struct object_update *update,
- size_t *max_update_size,
- enum update_type update_op,
- const struct lu_fid *fid,
- unsigned int param_count,
- __u16 *param_sizes,
- __u32 reply_size)
+static int out_update_header_pack(const struct lu_env *env,
+ struct object_update *update,
+ size_t *max_update_size,
+ enum update_type update_op,
+ const struct lu_fid *fid,
+ unsigned int param_count,
+ __u16 *param_sizes,
+ __u32 reply_size)
{
struct object_update_param *param;
unsigned int i;
* \param[in] exp OBD export
* \param[in] fmd FMD to put
*/
-void tgt_fmd_put(struct obd_export *exp, struct tgt_fmd_data *fmd)
+static void tgt_fmd_put(struct obd_export *exp, struct tgt_fmd_data *fmd)
{
struct tg_export_data *ted = &exp->exp_target_data;
* \retval struct tgt_fmd_data found by FID
* \retval NULL indicates FMD is not found
*/
-struct tgt_fmd_data *tgt_fmd_find(struct obd_export *exp,
- const struct lu_fid *fid)
+static struct tgt_fmd_data *tgt_fmd_find(struct obd_export *exp,
+ const struct lu_fid *fid)
{
struct tg_export_data *ted = &exp->exp_target_data;
struct tgt_fmd_data *fmd;
* \retval struct tgt_fmd_data found by FID
* \retval NULL indicates FMD is not found
*/
-struct tgt_fmd_data *tgt_fmd_get(struct obd_export *exp,
- const struct lu_fid *fid)
+static struct tgt_fmd_data *tgt_fmd_get(struct obd_export *exp,
+ const struct lu_fid *fid)
{
struct tg_export_data *ted = &exp->exp_target_data;
struct tgt_fmd_data *found = NULL, *fmd_new = NULL;
}
EXPORT_SYMBOL(tgt_obd_ping);
-int tgt_obd_log_cancel(struct tgt_session_info *tsi)
-{
- return err_serious(-EOPNOTSUPP);
-}
-
int tgt_send_buffer(struct tgt_session_info *tsi, struct lu_rdbuf *rdbuf)
{
struct ptlrpc_request *req = tgt_ses_req(tsi);
OBD_FREE_PTR(ccb);
}
-int tgt_new_client_cb_add(struct thandle *th, struct obd_export *exp)
+static int tgt_new_client_cb_add(struct thandle *th, struct obd_export *exp)
{
- struct tgt_new_client_callback *ccb;
- struct dt_txn_commit_cb *dcb;
- int rc;
+ struct tgt_new_client_callback *ccb;
+ struct dt_txn_commit_cb *dcb;
+ int rc;
OBD_ALLOC_PTR(ccb);
if (ccb == NULL)
* \retval 0 and buffer filled with data on success
* \retval negative value on error
*/
-ssize_t tgt_fmd_count_show(struct kobject *kobj, struct attribute *attr,
- char *buf)
+static ssize_t tgt_fmd_count_show(struct kobject *kobj, struct attribute *attr,
+ char *buf)
{
struct obd_device *obd = container_of(kobj, struct obd_device,
obd_kset.kobj);
* \retval \a count on success
* \retval negative value on error
*/
-ssize_t tgt_fmd_count_store(struct kobject *kobj, struct attribute *attr,
- const char *buffer, size_t count)
+static ssize_t tgt_fmd_count_store(struct kobject *kobj, struct attribute *attr,
+ const char *buffer, size_t count)
{
struct obd_device *obd = container_of(kobj, struct obd_device,
obd_kset.kobj);
* \retval 0 and buffer filled with data on success
* \retval negative value on error
*/
-ssize_t tgt_fmd_seconds_show(struct kobject *kobj, struct attribute *attr,
- char *buf)
+static ssize_t tgt_fmd_seconds_show(struct kobject *kobj,
+ struct attribute *attr,
+ char *buf)
{
struct obd_device *obd = container_of(kobj, struct obd_device,
obd_kset.kobj);
* \retval \a count on success
* \retval negative number on error
*/
-ssize_t tgt_fmd_seconds_store(struct kobject *kobj, struct attribute *attr,
- const char *buffer, size_t count)
+static ssize_t tgt_fmd_seconds_store(struct kobject *kobj,
+ struct attribute *attr,
+ const char *buffer, size_t count)
{
struct obd_device *obd = container_of(kobj, struct obd_device,
obd_kset.kobj);
#include <obd.h>
#include <obd_class.h>
+#include "tgt_internal.h"
+
/*********** mount lookup *********/
static DEFINE_MUTEX(lustre_mount_info_lock);
RETURN(0);
}
-int server_show_options(struct seq_file *seq, struct dentry *dentry)
+static int server_show_options(struct seq_file *seq, struct dentry *dentry)
{
struct lustre_sb_info *lsi;
struct lustre_mount_data *lmd;