We have a bunch of typedefs for common things that made no sense
and hid the actual type from plain view.
Replace them with proper uXX or sXX types.
Exception is in lustre_idl.h and lustre_ioctl.h where
they are replaced with __uXX and __sXX to be able to be included
in userspace
patch 8 in series: modify utils and ptlrpc
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I618e6e8465c845951f4735ac7ff2743544534809
Reviewed-on: http://review.whamcloud.com/13150
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
EXPORT_SYMBOL(RMF_EAVALS_LENS);
struct req_msg_field RMF_OBD_ID =
EXPORT_SYMBOL(RMF_EAVALS_LENS);
struct req_msg_field RMF_OBD_ID =
- DEFINE_MSGF("obd_id", 0,
- sizeof(obd_id), lustre_swab_ost_last_id, NULL);
+ DEFINE_MSGF("obd_id", 0,
+ sizeof(__u64), lustre_swab_ost_last_id, NULL);
EXPORT_SYMBOL(RMF_OBD_ID);
struct req_msg_field RMF_FID =
EXPORT_SYMBOL(RMF_OBD_ID);
struct req_msg_field RMF_FID =
}
EXPORT_SYMBOL(lustre_swab_ost_body);
}
EXPORT_SYMBOL(lustre_swab_ost_body);
-void lustre_swab_ost_last_id(obd_id *id)
+void lustre_swab_ost_last_id(u64 *id)
int tgt_validate_obdo(struct tgt_session_info *tsi, struct obdo *oa)
{
struct ost_id *oi = &oa->o_oi;
int tgt_validate_obdo(struct tgt_session_info *tsi, struct obdo *oa)
{
struct ost_id *oi = &oa->o_oi;
- obd_seq seq = ostid_seq(oi);
- obd_id id = ostid_id(oi);
+ u64 seq = ostid_seq(oi);
+ u64 id = ostid_id(oi);
static void tgt_warn_on_cksum(struct ptlrpc_request *req,
struct ptlrpc_bulk_desc *desc,
struct niobuf_local *local_nb, int npages,
static void tgt_warn_on_cksum(struct ptlrpc_request *req,
struct ptlrpc_bulk_desc *desc,
struct niobuf_local *local_nb, int npages,
- obd_count client_cksum, obd_count server_cksum,
+ u32 client_cksum, u32 server_cksum,
bool mmap)
{
struct obd_export *exp = req->rq_export;
bool mmap)
{
struct obd_export *exp = req->rq_export;
- obd_seq jt_seq;
- obd_id jt_id;
- int jt_width;
+ __u64 jt_seq;
+ __u64 jt_id;
+ int jt_width;
};
int jt_obd_alloc_fids(struct jt_fid_space *space, struct lu_fid *fid,
};
int jt_obd_alloc_fids(struct jt_fid_space *space, struct lu_fid *fid,
{
struct obd_ioctl_data data;
struct timeval start, next_time;
{
struct obd_ioctl_data data;
struct timeval start, next_time;
- __u64 i, count, next_count;
+ __u64 i, count, next_count;
char rawbuf[MAX_IOC_BUFLEN], *buf = rawbuf;
int verbose = 1;
char rawbuf[MAX_IOC_BUFLEN], *buf = rawbuf;
int verbose = 1;
struct obd_ioctl_data data;
struct timeval start, next_time;
char rawbuf[MAX_IOC_BUFLEN], *buf = rawbuf;
struct obd_ioctl_data data;
struct timeval start, next_time;
char rawbuf[MAX_IOC_BUFLEN], *buf = rawbuf;
- __u64 i, count, next_count;
+ __u64 i, count, next_count;