|
@@ -66,7 +66,6 @@ u32 lustre_msg_hdr_size(__u32 magic, u32 count)
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_hdr_size);
|
|
|
|
|
|
void ptlrpc_buf_set_swabbed(struct ptlrpc_request *req, const int inout,
|
|
|
u32 index)
|
|
@@ -76,7 +75,6 @@ void ptlrpc_buf_set_swabbed(struct ptlrpc_request *req, const int inout,
|
|
|
else
|
|
|
lustre_set_rep_swabbed(req, index);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(ptlrpc_buf_set_swabbed);
|
|
|
|
|
|
int ptlrpc_buf_need_swab(struct ptlrpc_request *req, const int inout,
|
|
|
u32 index)
|
|
@@ -88,7 +86,6 @@ int ptlrpc_buf_need_swab(struct ptlrpc_request *req, const int inout,
|
|
|
return (ptlrpc_rep_need_swab(req) &&
|
|
|
!lustre_rep_swabbed(req, index));
|
|
|
}
|
|
|
-EXPORT_SYMBOL(ptlrpc_buf_need_swab);
|
|
|
|
|
|
/* early reply size */
|
|
|
u32 lustre_msg_early_size(void)
|
|
@@ -151,7 +148,6 @@ u32 lustre_msg_size(__u32 magic, int count, __u32 *lens)
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_size);
|
|
|
|
|
|
/* This is used to determine the size of a buffer that was already packed
|
|
|
* and will correctly handle the different message formats.
|
|
@@ -166,7 +162,6 @@ u32 lustre_packed_msg_size(struct lustre_msg *msg)
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_packed_msg_size);
|
|
|
|
|
|
void lustre_init_msg_v2(struct lustre_msg_v2 *msg, int count, __u32 *lens,
|
|
|
char **bufs)
|
|
@@ -227,7 +222,6 @@ int lustre_pack_request(struct ptlrpc_request *req, __u32 magic, int count,
|
|
|
/* only use new format, we don't need to be compatible with 1.4 */
|
|
|
return lustre_pack_request_v2(req, count, lens, bufs);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_pack_request);
|
|
|
|
|
|
#if RS_DEBUG
|
|
|
LIST_HEAD(ptlrpc_rs_debug_lru);
|
|
@@ -369,7 +363,6 @@ int lustre_pack_reply_flags(struct ptlrpc_request *req, int count, __u32 *lens,
|
|
|
lustre_msg_size(req->rq_reqmsg->lm_magic, count, lens));
|
|
|
return rc;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_pack_reply_flags);
|
|
|
|
|
|
int lustre_pack_reply(struct ptlrpc_request *req, int count, __u32 *lens,
|
|
|
char **bufs)
|
|
@@ -491,7 +484,6 @@ void lustre_free_reply_state(struct ptlrpc_reply_state *rs)
|
|
|
|
|
|
sptlrpc_svc_free_rs(rs);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_free_reply_state);
|
|
|
|
|
|
static int lustre_unpack_msg_v2(struct lustre_msg_v2 *m, int len)
|
|
|
{
|
|
@@ -579,7 +571,6 @@ int ptlrpc_unpack_req_msg(struct ptlrpc_request *req, int len)
|
|
|
}
|
|
|
return rc;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(ptlrpc_unpack_req_msg);
|
|
|
|
|
|
int ptlrpc_unpack_rep_msg(struct ptlrpc_request *req, int len)
|
|
|
{
|
|
@@ -592,7 +583,6 @@ int ptlrpc_unpack_rep_msg(struct ptlrpc_request *req, int len)
|
|
|
}
|
|
|
return rc;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(ptlrpc_unpack_rep_msg);
|
|
|
|
|
|
static inline int lustre_unpack_ptlrpc_body_v2(struct ptlrpc_request *req,
|
|
|
const int inout, int offset)
|
|
@@ -685,7 +675,6 @@ u32 lustre_msg_bufcount(struct lustre_msg *m)
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_bufcount);
|
|
|
|
|
|
char *lustre_msg_string(struct lustre_msg *m, u32 index, u32 max_len)
|
|
|
{
|
|
@@ -729,7 +718,6 @@ char *lustre_msg_string(struct lustre_msg *m, u32 index, u32 max_len)
|
|
|
|
|
|
return str;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_string);
|
|
|
|
|
|
/* Wrap up the normal fixed length cases */
|
|
|
static inline void *__lustre_swab_buf(struct lustre_msg *msg, u32 index,
|
|
@@ -832,7 +820,6 @@ void lustre_msg_set_flags(struct lustre_msg *msg, u32 flags)
|
|
|
LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_set_flags);
|
|
|
|
|
|
void lustre_msg_clear_flags(struct lustre_msg *msg, u32 flags)
|
|
|
{
|
|
@@ -866,7 +853,6 @@ __u32 lustre_msg_get_op_flags(struct lustre_msg *msg)
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_get_op_flags);
|
|
|
|
|
|
void lustre_msg_add_op_flags(struct lustre_msg *msg, u32 flags)
|
|
|
{
|
|
@@ -901,7 +887,6 @@ struct lustre_handle *lustre_msg_get_handle(struct lustre_msg *msg)
|
|
|
return NULL;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_get_handle);
|
|
|
|
|
|
__u32 lustre_msg_get_type(struct lustre_msg *msg)
|
|
|
{
|
|
@@ -936,7 +921,6 @@ void lustre_msg_add_version(struct lustre_msg *msg, u32 version)
|
|
|
LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_add_version);
|
|
|
|
|
|
__u32 lustre_msg_get_opc(struct lustre_msg *msg)
|
|
|
{
|
|
@@ -1053,7 +1037,6 @@ __u64 lustre_msg_get_slv(struct lustre_msg *msg)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_get_slv);
|
|
|
|
|
|
void lustre_msg_set_slv(struct lustre_msg *msg, __u64 slv)
|
|
|
{
|
|
@@ -1073,7 +1056,6 @@ void lustre_msg_set_slv(struct lustre_msg *msg, __u64 slv)
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_set_slv);
|
|
|
|
|
|
__u32 lustre_msg_get_limit(struct lustre_msg *msg)
|
|
|
{
|
|
@@ -1092,7 +1074,6 @@ __u32 lustre_msg_get_limit(struct lustre_msg *msg)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_get_limit);
|
|
|
|
|
|
void lustre_msg_set_limit(struct lustre_msg *msg, __u64 limit)
|
|
|
{
|
|
@@ -1112,7 +1093,6 @@ void lustre_msg_set_limit(struct lustre_msg *msg, __u64 limit)
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_set_limit);
|
|
|
|
|
|
__u32 lustre_msg_get_conn_cnt(struct lustre_msg *msg)
|
|
|
{
|
|
@@ -1143,7 +1123,6 @@ __u32 lustre_msg_get_magic(struct lustre_msg *msg)
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_get_magic);
|
|
|
|
|
|
__u32 lustre_msg_get_timeout(struct lustre_msg *msg)
|
|
|
{
|
|
@@ -1226,7 +1205,6 @@ void lustre_msg_set_handle(struct lustre_msg *msg, struct lustre_handle *handle)
|
|
|
LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_set_handle);
|
|
|
|
|
|
void lustre_msg_set_type(struct lustre_msg *msg, __u32 type)
|
|
|
{
|
|
@@ -1242,7 +1220,6 @@ void lustre_msg_set_type(struct lustre_msg *msg, __u32 type)
|
|
|
LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_set_type);
|
|
|
|
|
|
void lustre_msg_set_opc(struct lustre_msg *msg, __u32 opc)
|
|
|
{
|
|
@@ -1258,7 +1235,6 @@ void lustre_msg_set_opc(struct lustre_msg *msg, __u32 opc)
|
|
|
LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_set_opc);
|
|
|
|
|
|
void lustre_msg_set_versions(struct lustre_msg *msg, __u64 *versions)
|
|
|
{
|
|
@@ -1325,7 +1301,6 @@ void lustre_msg_set_conn_cnt(struct lustre_msg *msg, __u32 conn_cnt)
|
|
|
LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic);
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_msg_set_conn_cnt);
|
|
|
|
|
|
void lustre_msg_set_timeout(struct lustre_msg *msg, __u32 timeout)
|
|
|
{
|
|
@@ -1490,7 +1465,6 @@ void lustre_swab_ptlrpc_body(struct ptlrpc_body *b)
|
|
|
*/
|
|
|
CLASSERT(offsetof(typeof(*b), pb_jobid) != 0);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_ptlrpc_body);
|
|
|
|
|
|
void lustre_swab_connect(struct obd_connect_data *ocd)
|
|
|
{
|
|
@@ -1590,7 +1564,6 @@ void lustre_swab_obd_statfs(struct obd_statfs *os)
|
|
|
CLASSERT(offsetof(typeof(*os), os_spare8) != 0);
|
|
|
CLASSERT(offsetof(typeof(*os), os_spare9) != 0);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_obd_statfs);
|
|
|
|
|
|
void lustre_swab_obd_ioobj(struct obd_ioobj *ioo)
|
|
|
{
|
|
@@ -1598,7 +1571,6 @@ void lustre_swab_obd_ioobj(struct obd_ioobj *ioo)
|
|
|
__swab32s(&ioo->ioo_max_brw);
|
|
|
__swab32s(&ioo->ioo_bufcnt);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_obd_ioobj);
|
|
|
|
|
|
void lustre_swab_niobuf_remote(struct niobuf_remote *nbr)
|
|
|
{
|
|
@@ -1606,25 +1578,21 @@ void lustre_swab_niobuf_remote(struct niobuf_remote *nbr)
|
|
|
__swab32s(&nbr->rnb_len);
|
|
|
__swab32s(&nbr->rnb_flags);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_niobuf_remote);
|
|
|
|
|
|
void lustre_swab_ost_body(struct ost_body *b)
|
|
|
{
|
|
|
lustre_swab_obdo(&b->oa);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_ost_body);
|
|
|
|
|
|
void lustre_swab_ost_last_id(u64 *id)
|
|
|
{
|
|
|
__swab64s(id);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_ost_last_id);
|
|
|
|
|
|
void lustre_swab_generic_32s(__u32 *val)
|
|
|
{
|
|
|
__swab32s(val);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_generic_32s);
|
|
|
|
|
|
void lustre_swab_gl_desc(union ldlm_gl_desc *desc)
|
|
|
{
|
|
@@ -1703,7 +1671,6 @@ void lustre_swab_mdt_body(struct mdt_body *b)
|
|
|
__swab32s(&b->mbo_gid_h);
|
|
|
CLASSERT(offsetof(typeof(*b), mbo_padding_5) != 0);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_mdt_body);
|
|
|
|
|
|
void lustre_swab_mdt_ioepoch(struct mdt_ioepoch *b)
|
|
|
{
|
|
@@ -1712,7 +1679,6 @@ void lustre_swab_mdt_ioepoch(struct mdt_ioepoch *b)
|
|
|
__swab32s(&b->flags);
|
|
|
CLASSERT(offsetof(typeof(*b), padding) != 0);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_mdt_ioepoch);
|
|
|
|
|
|
void lustre_swab_mgs_target_info(struct mgs_target_info *mti)
|
|
|
{
|
|
@@ -1728,7 +1694,6 @@ void lustre_swab_mgs_target_info(struct mgs_target_info *mti)
|
|
|
for (i = 0; i < MTI_NIDS_MAX; i++)
|
|
|
__swab64s(&mti->mti_nids[i]);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_mgs_target_info);
|
|
|
|
|
|
void lustre_swab_mgs_nidtbl_entry(struct mgs_nidtbl_entry *entry)
|
|
|
{
|
|
@@ -1759,14 +1724,12 @@ void lustre_swab_mgs_config_body(struct mgs_config_body *body)
|
|
|
__swab32s(&body->mcb_units);
|
|
|
__swab16s(&body->mcb_type);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_mgs_config_body);
|
|
|
|
|
|
void lustre_swab_mgs_config_res(struct mgs_config_res *body)
|
|
|
{
|
|
|
__swab64s(&body->mcr_offset);
|
|
|
__swab64s(&body->mcr_size);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_mgs_config_res);
|
|
|
|
|
|
static void lustre_swab_obd_dqinfo(struct obd_dqinfo *i)
|
|
|
{
|
|
@@ -1799,7 +1762,6 @@ void lustre_swab_obd_quotactl(struct obd_quotactl *q)
|
|
|
lustre_swab_obd_dqinfo(&q->qc_dqinfo);
|
|
|
lustre_swab_obd_dqblk(&q->qc_dqblk);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_obd_quotactl);
|
|
|
|
|
|
void lustre_swab_fid2path(struct getinfo_fid2path *gf)
|
|
|
{
|
|
@@ -1833,7 +1795,6 @@ void lustre_swab_fiemap(struct ll_user_fiemap *fiemap)
|
|
|
for (i = 0; i < fiemap->fm_mapped_extents; i++)
|
|
|
lustre_swab_fiemap_extent(&fiemap->fm_extents[i]);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_fiemap);
|
|
|
|
|
|
void lustre_swab_mdt_rec_reint (struct mdt_rec_reint *rr)
|
|
|
{
|
|
@@ -1862,7 +1823,6 @@ void lustre_swab_mdt_rec_reint (struct mdt_rec_reint *rr)
|
|
|
|
|
|
CLASSERT(offsetof(typeof(*rr), rr_padding_4) != 0);
|
|
|
};
|
|
|
-EXPORT_SYMBOL(lustre_swab_mdt_rec_reint);
|
|
|
|
|
|
void lustre_swab_lov_desc(struct lov_desc *ld)
|
|
|
{
|
|
@@ -1901,7 +1861,6 @@ void lustre_swab_lmv_mds_md(union lmv_mds_md *lmm)
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_lmv_mds_md);
|
|
|
|
|
|
void lustre_swab_lmv_user_md(struct lmv_user_md *lum)
|
|
|
{
|
|
@@ -1955,7 +1914,6 @@ void lustre_swab_lov_mds_md(struct lov_mds_md *lmm)
|
|
|
__swab16s(&lmm->lmm_stripe_count);
|
|
|
__swab16s(&lmm->lmm_layout_gen);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_lov_mds_md);
|
|
|
|
|
|
void lustre_swab_lov_user_md_objects(struct lov_user_ost_data *lod,
|
|
|
int stripe_count)
|
|
@@ -1995,7 +1953,6 @@ void lustre_swab_ldlm_intent(struct ldlm_intent *i)
|
|
|
{
|
|
|
__swab64s(&i->opc);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_ldlm_intent);
|
|
|
|
|
|
static void lustre_swab_ldlm_resource_desc(struct ldlm_resource_desc *r)
|
|
|
{
|
|
@@ -2019,7 +1976,6 @@ void lustre_swab_ldlm_request(struct ldlm_request *rq)
|
|
|
__swab32s(&rq->lock_count);
|
|
|
/* lock_handle[] opaque */
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_ldlm_request);
|
|
|
|
|
|
void lustre_swab_ldlm_reply(struct ldlm_reply *r)
|
|
|
{
|
|
@@ -2030,7 +1986,6 @@ void lustre_swab_ldlm_reply(struct ldlm_reply *r)
|
|
|
__swab64s(&r->lock_policy_res1);
|
|
|
__swab64s(&r->lock_policy_res2);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_ldlm_reply);
|
|
|
|
|
|
/* Dump functions */
|
|
|
void dump_ioo(struct obd_ioobj *ioo)
|
|
@@ -2040,14 +1995,12 @@ void dump_ioo(struct obd_ioobj *ioo)
|
|
|
POSTID(&ioo->ioo_oid), ioo->ioo_max_brw,
|
|
|
ioo->ioo_bufcnt);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(dump_ioo);
|
|
|
|
|
|
void dump_rniobuf(struct niobuf_remote *nb)
|
|
|
{
|
|
|
CDEBUG(D_RPCTRACE, "niobuf_remote: offset=%llu, len=%d, flags=%x\n",
|
|
|
nb->rnb_offset, nb->rnb_len, nb->rnb_flags);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(dump_rniobuf);
|
|
|
|
|
|
static void dump_obdo(struct obdo *oa)
|
|
|
{
|
|
@@ -2115,13 +2068,11 @@ void dump_ost_body(struct ost_body *ob)
|
|
|
{
|
|
|
dump_obdo(&ob->oa);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(dump_ost_body);
|
|
|
|
|
|
void dump_rcs(__u32 *rc)
|
|
|
{
|
|
|
CDEBUG(D_RPCTRACE, "rmf_rcs: %d\n", *rc);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(dump_rcs);
|
|
|
|
|
|
static inline int req_ptlrpc_body_swabbed(struct ptlrpc_request *req)
|
|
|
{
|
|
@@ -2206,14 +2157,12 @@ void lustre_swab_lustre_capa(struct lustre_capa *c)
|
|
|
__swab32s(&c->lc_timeout);
|
|
|
__swab32s(&c->lc_expiry);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_lustre_capa);
|
|
|
|
|
|
void lustre_swab_hsm_user_state(struct hsm_user_state *state)
|
|
|
{
|
|
|
__swab32s(&state->hus_states);
|
|
|
__swab32s(&state->hus_archive_id);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_hsm_user_state);
|
|
|
|
|
|
void lustre_swab_hsm_state_set(struct hsm_state_set *hss)
|
|
|
{
|
|
@@ -2236,14 +2185,12 @@ void lustre_swab_hsm_current_action(struct hsm_current_action *action)
|
|
|
__swab32s(&action->hca_action);
|
|
|
lustre_swab_hsm_extent(&action->hca_location);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_hsm_current_action);
|
|
|
|
|
|
void lustre_swab_hsm_user_item(struct hsm_user_item *hui)
|
|
|
{
|
|
|
lustre_swab_lu_fid(&hui->hui_fid);
|
|
|
lustre_swab_hsm_extent(&hui->hui_extent);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_hsm_user_item);
|
|
|
|
|
|
void lustre_swab_layout_intent(struct layout_intent *li)
|
|
|
{
|
|
@@ -2252,7 +2199,6 @@ void lustre_swab_layout_intent(struct layout_intent *li)
|
|
|
__swab64s(&li->li_start);
|
|
|
__swab64s(&li->li_end);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_layout_intent);
|
|
|
|
|
|
void lustre_swab_hsm_progress_kernel(struct hsm_progress_kernel *hpk)
|
|
|
{
|
|
@@ -2263,7 +2209,6 @@ void lustre_swab_hsm_progress_kernel(struct hsm_progress_kernel *hpk)
|
|
|
__swab16s(&hpk->hpk_flags);
|
|
|
__swab16s(&hpk->hpk_errval);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_hsm_progress_kernel);
|
|
|
|
|
|
void lustre_swab_hsm_request(struct hsm_request *hr)
|
|
|
{
|
|
@@ -2273,7 +2218,6 @@ void lustre_swab_hsm_request(struct hsm_request *hr)
|
|
|
__swab32s(&hr->hr_itemcount);
|
|
|
__swab32s(&hr->hr_data_len);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_hsm_request);
|
|
|
|
|
|
void lustre_swab_swap_layouts(struct mdc_swap_layouts *msl)
|
|
|
{
|
|
@@ -2286,4 +2230,3 @@ void lustre_swab_close_data(struct close_data *cd)
|
|
|
lustre_swab_lu_fid(&cd->cd_fid);
|
|
|
__swab64s(&cd->cd_data_version);
|
|
|
}
|
|
|
-EXPORT_SYMBOL(lustre_swab_close_data);
|