Whamcloud - gitweb
LU-3590 osp: compat macro for is_remote_trans
[fs/lustre-release.git] / lustre / osp / osp_internal.h
index 1ba68d2..383a3d1 100644 (file)
@@ -273,10 +273,14 @@ struct osp_thread_info {
        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)
@@ -472,7 +476,6 @@ struct thandle *osp_trans_create(const struct lu_env *env,
                                 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,
@@ -491,6 +494,9 @@ int osp_declare_object_destroy(const struct lu_env *env,
 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);