X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Fobd_ost.h;h=e9994516001960bc77ffbb1bb825bcd44011f5ba;hb=2ac16ab5ab7b879e5dd9dec61e078280932086d5;hp=0609a7f575db71aac84cf1b79f202b8a77abf955;hpb=a07a72605bd79e48c40f06a0aa9c97e14d96e031;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/obd_ost.h b/lustre/include/linux/obd_ost.h index 0609a7f..e999451 100644 --- a/lustre/include/linux/obd_ost.h +++ b/lustre/include/linux/obd_ost.h @@ -27,38 +27,16 @@ #ifndef _LUSTRE_OST_H #define _LUSTRE_OST_H -#include +#include #define LUSTRE_OST_NAME "ost" #define LUSTRE_OSC_NAME "osc" -struct ost_obd { - struct ptlrpc_service *ost_service; - - struct obd_device *ost_tgt; - struct obd_conn ost_conn; -}; - /* ost/ost_pack.c */ -int ost_pack_req(char *buf1, int buflen1, char *buf2, int buflen2, struct ptlreq_hdr **hdr, union ptl_req *req, int *len, char **buf); -int ost_unpack_req(char *buf, int len, struct ptlreq_hdr **hdr, union ptl_req *req); -int ost_pack_rep(char *buf1, int buflen1, char *buf2, int buflen2, - struct ptlrep_hdr **hdr, union ptl_rep *r, - int *len, char **buf); -int ost_unpack_rep(char *buf, int len, struct ptlrep_hdr **hdr, union ptl_rep *rep); - -void ost_pack_niobuf(void **tmp, void *addr, __u64 offset, __u32 len, - __u32 flags); -void ost_unpack_niobuf(void **tmp, struct niobuf **nbp); -void ost_pack_ioo(void **tmp, struct obdo *oa, int bufcnt); +void ost_pack_niobuf(void **tmp, __u64 offset, __u32 len, __u32 flags, + __u32 xid); +void ost_unpack_niobuf(void **tmp, struct niobuf_remote **nbp); +void ost_pack_ioo(void **tmp, struct lov_stripe_md *oa, int bufcnt); void ost_unpack_ioo(void **tmp, struct obd_ioobj **ioop); -void *ost_req_buf2(struct ost_req *req); -void *ost_req_buf1(struct ost_req *req); -void *ost_rep_buf2(struct ost_rep *rep); -void *ost_rep_buf1(struct ost_rep *rep); - - #endif - -