* Return device-wide statistics.
*/
int (*dt_statfs)(const struct lu_env *env,
- struct dt_device *dev, struct kstatfs *sfs);
+ struct dt_device *dev, cfs_kstatfs_t *sfs);
/**
* Start transaction, described by \a param.
*/
void (*do_ah_init)(const struct lu_env *env,
struct dt_allocation_hint *ah,
struct dt_object *parent,
- umode_t child_mode);
+ cfs_umode_t child_mode);
/**
* Create new object on this device.
*
* way, because callbacks are supposed to be added/deleted only during
* single-threaded start-up shut-down procedures.
*/
- struct list_head dd_txn_callbacks;
+ cfs_list_t dd_txn_callbacks;
};
int dt_device_init(struct dt_device *dev, struct lu_device_type *t);
p->tp_credits = credits;
}
+static inline void txn_param_credit_add(struct txn_param *p,
+ unsigned int credits)
+{
+ p->tp_credits += credits;
+}
+
+static inline void txn_param_sync(struct txn_param *p)
+{
+ p->tp_sync = 1;
+}
+
/**
* This is the general purpose transaction handle.
* 1. Transaction Life Cycle
struct thandle *txn, void *cookie);
int (*dtc_txn_commit)(const struct lu_env *env,
struct thandle *txn, void *cookie);
- void *dtc_cookie;
- __u32 dtc_tag;
- struct list_head dtc_linkage;
+ void *dtc_cookie;
+ __u32 dtc_tag;
+ cfs_list_t dtc_linkage;
};
void dt_txn_callback_add(struct dt_device *dev, struct dt_txn_callback *cb);