struct obdo osi_obdo;
};
-static inline bool is_remote_trans(struct thandle *th)
+/* The transaction only include the updates on the remote node, and
+ * no local updates at all */
+static inline bool is_only_remote_trans(struct thandle *th)
{
return th->th_dev->dd_ops == &osp_dt_ops;
}
+/* compat define for lfsck, to be removed soon */
+#define is_remote_trans(a) is_only_remote_trans(a)
static inline void osp_objid_buf_prep(struct lu_buf *buf, loff_t *off,
__u32 *id, int index)
struct dt_device *d);
int osp_trans_start(const struct lu_env *env, struct dt_device *dt,
struct thandle *th);
-int osp_trans_stop(const struct lu_env *env, struct thandle *th);
/* osp_object.c */
int osp_attr_get(const struct lu_env *env, struct dt_object *dt,
int osp_object_destroy(const struct lu_env *env, struct dt_object *dt,
struct thandle *th);
+int osp_trans_stop(const struct lu_env *env, struct dt_device *dt,
+ struct thandle *th);
+
/* osp_precreate.c */
int osp_init_precreate(struct osp_device *d);
int osp_precreate_reserve(const struct lu_env *env, struct osp_device *d);