int ibc_outstanding_credits; /* # credits to return */
int ibc_reserved_credits;/* # ACK/DONE msg credits */
int ibc_comms_error; /* set on comms error */
- int ibc_nrx:16; /* receive buffers owned */
- int ibc_scheduled:1; /* scheduled for attention */
- int ibc_ready:1; /* CQ callback fired */
+ unsigned int ibc_nrx:16; /* receive buffers owned */
+ unsigned int ibc_scheduled:1; /* scheduled for attention */
+ unsigned int ibc_ready:1; /* CQ callback fired */
/* time of last send */
unsigned long ibc_last_send;
/** link chain for kiblnd_check_conns only */
__u32 ksnc_myipaddr; /* my IP */
__u32 ksnc_ipaddr; /* peer's IP */
int ksnc_port; /* peer's port */
- int ksnc_type:3; /* type of connection, should be signed value */
- int ksnc_closing:1; /* being shut down */
- int ksnc_flip:1; /* flip or not, only for V2.x */
- int ksnc_zc_capable:1; /* enable to ZC */
+ signed int ksnc_type:3; /* type of connection,
+ * should be signed value */
+ unsigned int ksnc_closing:1; /* being shut down */
+ unsigned int ksnc_flip:1; /* flip or not, only for V2.x */
+ unsigned int ksnc_zc_capable:1; /* enable to ZC */
struct ksock_proto *ksnc_proto; /* protocol for the connection */
/* reader */
struct lstcon_node *crp_node; /* destination node */
struct lstcon_rpc_trans *crp_trans; /* conrpc transaction */
- int crp_posted:1; /* rpc is posted */
- int crp_finished:1; /* rpc is finished */
- int crp_unpacked:1; /* reply is unpacked */
+ unsigned int crp_posted:1; /* rpc is posted */
+ unsigned int crp_finished:1; /* rpc is finished */
+ unsigned int crp_unpacked:1; /* reply is unpacked */
/** RPC is embedded in other structure and can't free it */
- int crp_embedded:1;
+ unsigned int crp_embedded:1;
int crp_status; /* console rpc errors */
cfs_time_t crp_stamp; /* replied time stamp */
} lstcon_rpc_t;
sfw_batch_t *tsi_batch; /* batch */
sfw_test_client_ops_t *tsi_ops; /* test client operations */
- /* public parameter for all test units */
- int tsi_is_client:1; /* is test client */
- int tsi_stoptsu_onerr:1; /* stop tsu on error */
+ /* public parameter for all test units */
+ unsigned int tsi_is_client:1; /* is test client */
+ unsigned int tsi_stoptsu_onerr:1; /* stop tsu on error */
int tsi_concur; /* concurrency */
int tsi_loop; /* loop count */
/* status of test instance */
spinlock_t tsi_lock; /* serialize */
- int tsi_stopping:1; /* test is stopping */
+ unsigned int tsi_stopping:1; /* test is stopping */
cfs_atomic_t tsi_nactive; /* # of active test unit */
cfs_list_t tsi_units; /* test units */
cfs_list_t tsi_free_rpcs; /* free rpcs */
/**
* Cache name used for debug and messages. */
char fci_name[80];
- int fci_no_shrink:1;
+ unsigned int fci_no_shrink:1;
};
enum fld_op {
struct lu_env fsp_env;
struct dt_it *fsp_it;
struct lu_server_fld *fsp_fld;
- int fsp_stop:1;
+ unsigned int fsp_stop:1;
};
static void *fldb_seq_start(struct seq_file *p, loff_t *pos)
__s32 th_result;
/** whether we need sync commit */
- int th_sync:1;
+ unsigned int th_sync:1;
/* local transation, no need to inform other layers */
- int th_local:1;
+ unsigned int th_local:1;
/* In DNE, one transaction can be disassemblied into
* updates on several different MDTs, and these updates
*
* \see ll_dirty_page_discard_warn.
*/
- int cob_discard_page_warned:1;
+ unsigned int cob_discard_page_warned:1;
};
/**
struct lustre_capa *ma_capa;
struct md_som_data *ma_som;
int ma_lmm_size;
- int ma_big_lmm_used:1;
int ma_lmv_size;
int ma_acl_size;
int ma_cookie_size;
struct llog_cookie *oti_logcookies;
int oti_numcookies;
/** synchronous write is needed */
- long oti_sync_write:1;
+ unsigned long oti_sync_write:1;
/* initial thread handling transaction */
struct ptlrpc_thread * oti_thread;
int ldo_stripes_allocated;
/* default striping for directory represented by this object
* is cached in stripenr/stripe_size */
- int ldo_striping_cached:1,
+ unsigned int ldo_striping_cached:1,
ldo_def_striping_set:1;
__u32 ldo_def_stripe_size;
__u16 ldo_def_stripenr;
* Set when sub-lock was canceled, while top-lock was being
* used, or unused.
*/
- int lls_cancel_race:1;
+ unsigned int lls_cancel_race:1;
/**
* An array of sub-locks
*
__u32 mcud_id;
__u32 mcud_minid; /**< user id with lowest rec reference */
__u32 mcud_usercount;
- int mcud_found:1;
+ unsigned int mcud_found:1;
};
#define MCUD_UNREGISTER -1LL
struct obd_export *mdt_bottom_exp;
/** target device */
struct lu_target mdt_lut;
- /*
- * Options bit-fields.
- */
- struct {
- signed int mo_user_xattr :1,
- mo_acl :1,
- mo_compat_resname:1,
- mo_mds_capa :1,
- mo_oss_capa :1,
- mo_cos :1;
- } mdt_opts;
+ /*
+ * Options bit-fields.
+ */
+ struct {
+ unsigned int mo_user_xattr:1,
+ mo_acl:1,
+ mo_compat_resname:1,
+ mo_mds_capa:1,
+ mo_oss_capa:1,
+ mo_cos:1;
+ } mdt_opts;
/* mdt state flags */
unsigned long mdt_state;
/* lock to protect IOepoch */
struct completion fsdb_notify_comp;
cfs_time_t fsdb_notify_start;
cfs_atomic_t fsdb_notify_phase;
- volatile int fsdb_notify_async:1,
+ volatile unsigned int fsdb_notify_async:1,
fsdb_notify_stop:1;
/* statistic data */
unsigned int fsdb_notify_total;
int opd_got_disconnected;
int opd_imp_connected;
int opd_imp_active;
- int opd_imp_seen_connected:1,
+ unsigned int opd_imp_seen_connected:1,
opd_connect_mdt:1;
/* whether local recovery is completed:
struct osp_object {
struct lu_object_header opo_header;
struct dt_object opo_obj;
- int opo_reserved:1,
+ unsigned int opo_reserved:1,
opo_new:1,
opo_empty:1;