X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_scrub.h;h=3eba040fac690e9f603d13f825c9649b76bb7ce2;hb=a21c13d4df4bea1bec0f5804136740ed53d5a57f;hp=055b248e2172cad61eb3bbe8a3e296133845892a;hpb=6ff16309a006788cc91a7adf561aaebd76dd3b38;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_scrub.h b/lustre/include/lustre_scrub.h index 055b248e..3eba040 100644 --- a/lustre/include/lustre_scrub.h +++ b/lustre/include/lustre_scrub.h @@ -46,8 +46,6 @@ #define SCRUB_CHECKPOINT_INTERVAL 60 #define SCRUB_WINDOW_SIZE 1024 -#define HALF_SEC msecs_to_jiffies(MSEC_PER_SEC >> 1) - enum scrub_next_status { /* exit current loop and process next group */ SCRUB_NEXT_BREAK = 1, @@ -202,13 +200,13 @@ struct scrub_file { __u16 sf_param; /* The time for the last OI scrub completed. */ - __u64 sf_time_last_complete; + time64_t sf_time_last_complete; - /* The time for the latest OI scrub ran. */ - __u64 sf_time_latest_start; + /* The ttime for the latest OI scrub ran. */ + time64_t sf_time_latest_start; /* The time for the last OI scrub checkpoint. */ - __u64 sf_time_last_checkpoint; + time64_t sf_time_last_checkpoint; /* The position for the latest OI scrub started from. */ __u64 sf_pos_latest_start; @@ -237,8 +235,11 @@ struct scrub_file { /* How many IGIF objects. */ __u64 sf_items_igif; - /* How long the OI scrub has run. */ - __u32 sf_run_time; + /* How long the OI scrub has run in seconds. Do NOT change + * to time64_t since this breaks backwards compatibility. + * It shouldn't take more than 136 years to complete :-) + */ + time_t sf_run_time; /* How many completed OI scrub ran on the device. */ __u32 sf_success_count; @@ -257,7 +258,6 @@ struct scrub_file { }; struct lustre_scrub { - struct lu_object_header os_obj_header; /* Object for the scrub file. */ struct dt_object *os_obj; @@ -277,11 +277,11 @@ struct lustre_scrub { const char *os_name; - /* The time for last checkpoint, jiffies */ - cfs_time_t os_time_last_checkpoint; + /* The time for last checkpoint, seconds */ + time64_t os_time_last_checkpoint; - /* The time for next checkpoint, jiffies */ - cfs_time_t os_time_next_checkpoint; + /* The time for next checkpoint, seconds */ + time64_t os_time_next_checkpoint; /* How many objects have been checked since last checkpoint. */ __u64 os_new_checked;