X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flfsck%2Flfsck_internal.h;h=3d02d3466a3b5fc39afedfe31901c7e92b4b0d38;hp=56cdff0ce16b4672d72c4d453a0b289b305f1156;hb=da12d3ba35bbb86c8e5860a5ed161a55f01b69d5;hpb=e02e613f411d4273c9c1c99ee88121e641ddb4c2 diff --git a/lustre/lfsck/lfsck_internal.h b/lustre/lfsck/lfsck_internal.h index 56cdff0..3d02d34 100644 --- a/lustre/lfsck/lfsck_internal.h +++ b/lustre/lfsck/lfsck_internal.h @@ -42,6 +42,7 @@ #include #include #include +#include #define HALF_SEC (HZ >> 1) #define LFSCK_CHECKPOINT_INTERVAL 60 @@ -352,6 +353,12 @@ struct lfsck_thread_info { struct lu_fid lti_fid; struct lu_fid lti_fid2; struct lu_attr lti_la; + struct ost_id lti_oi; + union { + struct lustre_mdt_attrs lti_lma; + /* old LMA for compatibility */ + char lti_lma_old[LMA_OLD_SIZE]; + }; /* lti_ent and lti_key must be conjoint, * then lti_ent::lde_name will be lti_key. */ struct lu_dirent lti_ent; @@ -544,4 +551,9 @@ static inline void lfsck_object_put(const struct lu_env *env, lu_object_put(env, &obj->do_lu); } +static inline mdsno_t lfsck_dev_idx(struct dt_device *dev) +{ + return dev->dd_lu_dev.ld_site->ld_seq_site->ss_node_id; +} + #endif /* _LFSCK_INTERNAL_H */