Whamcloud - gitweb
LU-10030 hsm: make changelog flag argument an enum
[fs/lustre-release.git] / lustre / include / md_object.h
index 242e90d..fb8c67f 100644 (file)
@@ -181,6 +181,7 @@ enum md_layout_opc {
  */
 struct md_layout_change {
        enum md_layout_opc       mlc_opc;
+       __u16                    mlc_mirror_id;
        struct layout_intent    *mlc_intent;
        struct lu_buf            mlc_buf;
        struct lustre_som_attrs  mlc_som;
@@ -229,7 +230,8 @@ struct md_object_operations {
                            struct lu_buf *buf);
 
        int (*moo_changelog)(const struct lu_env *env,
-                            enum changelog_rec_type type, int flags,
+                            enum changelog_rec_type type,
+                            enum changelog_rec_flags clf_flags,
                             struct md_device *m, const struct lu_fid *fid);
 
        int (*moo_open)(const struct lu_env *env,
@@ -412,8 +414,8 @@ static inline int mo_readlink(const struct lu_env *env,
 
 static inline int mo_changelog(const struct lu_env *env,
                               enum changelog_rec_type type,
-                              int flags, struct md_device *m,
-                              const struct lu_fid *fid)
+                              enum changelog_rec_flags clf_flags,
+                              struct md_device *m, const struct lu_fid *fid)
 {
        struct lu_fid rootfid;
        struct md_object *root;
@@ -428,7 +430,7 @@ static inline int mo_changelog(const struct lu_env *env,
                RETURN(PTR_ERR(root));
 
        LASSERT(root->mo_ops->moo_changelog);
-       rc = root->mo_ops->moo_changelog(env, type, flags, m, fid);
+       rc = root->mo_ops->moo_changelog(env, type, clf_flags, m, fid);
 
        lu_object_put(env, &root->mo_lu);