Whamcloud - gitweb
LU-11426 llog: changelog records reordering
[fs/lustre-release.git] / lustre / mdd / mdd_internal.h
index ac8ecc3..cc2e6aa 100644 (file)
@@ -150,6 +150,8 @@ struct mdd_device {
         struct mdd_dot_lustre_objs       mdd_dot_lustre_objs;
        unsigned int                     mdd_sync_permission;
        int                              mdd_connects;
+       int                              mdd_append_stripe_count;
+       char                             mdd_append_pool[LOV_MAXPOOLNAME + 1];
        struct local_oid_storage        *mdd_los;
        struct mdd_generic_thread        mdd_orphan_cleanup_thread;
        struct kobject                   mdd_kobj;
@@ -277,6 +279,12 @@ int mdd_dir_layout_shrink(const struct lu_env *env,
                          struct md_object *md_obj,
                          const struct lu_buf *lmu_buf);
 
+int mdd_changelog_write_rec(const struct lu_env *env,
+                           struct llog_handle *loghandle,
+                           struct llog_rec_hdr *rec,
+                           struct llog_cookie *cookie,
+                           int idx, struct thandle *th);
+
 struct mdd_thread_info *mdd_env_info(const struct lu_env *env);
 
 #define MDD_ENV_VAR(env, var) (&mdd_env_info(env)->mti_##var)