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
final patch in series.
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I2b714ec673a004561d45ad46041191bef3ec9a8e
Reviewed-on: http://review.whamcloud.com/14256
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
#define LUSTRE_LOG_VERSION 0x00050000
#define LUSTRE_MGS_VERSION 0x00060000
#define LUSTRE_LOG_VERSION 0x00050000
#define LUSTRE_MGS_VERSION 0x00060000
-/* TODO: All obd_* typedefs will be removed in last patch in series */
-typedef __u64 obd_id;
-typedef __u64 obd_seq;
-typedef __s64 obd_time;
-typedef __u64 obd_size;
-typedef __u64 obd_off;
-typedef __u64 obd_blocks;
-typedef __u64 obd_valid;
-typedef __u32 obd_blksize;
-typedef __u32 obd_mode;
-typedef __u32 obd_uid;
-typedef __u32 obd_gid;
-typedef __u32 obd_flag;
-typedef __u32 obd_count;
-
/**
* Describes a range of sequence, lsr_start is included but lsr_end is
* not in the range.
/**
* Describes a range of sequence, lsr_start is included but lsr_end is
* not in the range.
* \retval negative negated errno on failure
*/
int lmv_set_info_async(const struct lu_env *env, struct obd_export *exp,
* \retval negative negated errno on failure
*/
int lmv_set_info_async(const struct lu_env *env, struct obd_export *exp,
- obd_count keylen, void *key, obd_count vallen,
- void *val, struct ptlrpc_request_set *set)
+ __u32 keylen, void *key, __u32 vallen, void *val,
+ struct ptlrpc_request_set *set)
{
struct lmv_tgt_desc *tgt = NULL;
struct obd_device *obd;
{
struct lmv_tgt_desc *tgt = NULL;
struct obd_device *obd;
struct cl_object *obj = lov2cl(loo);
struct lov_layout_raid0 *r0 = lov_r0(loo);
struct lov_io_sub *sub;
struct cl_object *obj = lov2cl(loo);
struct lov_layout_raid0 *r0 = lov_r0(loo);
struct lov_io_sub *sub;
pgoff_t ra_end;
unsigned int pps; /* pages per stripe */
int stripe;
pgoff_t ra_end;
unsigned int pps; /* pages per stripe */
int stripe;