Whamcloud - gitweb
LU-1996 lustre: Flexible changelog format.
[fs/lustre-release.git] / lustre / obdclass / lprocfs_jobstats.c
index d14ce6c..c2eff71 100644 (file)
@@ -67,7 +67,7 @@ struct job_stat {
        struct hlist_node       js_hash;
        struct list_head        js_list;
        atomic_t                js_refcount;
-       char                    js_jobid[JOBSTATS_JOBID_SIZE];
+       char                    js_jobid[LUSTRE_JOBID_SIZE];
        time_t                  js_timestamp; /* seconds */
        struct lprocfs_stats    *js_stats;
        struct obd_job_stats    *js_jobstats;
@@ -196,7 +196,7 @@ static struct job_stat *job_alloc(char *jobid, struct obd_job_stats *jobs)
 
        jobs->ojs_cntr_init_fn(job->js_stats);
 
-       memcpy(job->js_jobid, jobid, JOBSTATS_JOBID_SIZE);
+       memcpy(job->js_jobid, jobid, LUSTRE_JOBID_SIZE);
        job->js_timestamp = cfs_time_current_sec();
        job->js_jobstats = jobs;
        INIT_HLIST_NODE(&job->js_hash);
@@ -220,9 +220,9 @@ int lprocfs_job_stats_log(struct obd_device *obd, char *jobid,
        if (!jobid || !strlen(jobid))
                RETURN(-EINVAL);
 
-       if (strlen(jobid) >= JOBSTATS_JOBID_SIZE) {
+       if (strlen(jobid) >= LUSTRE_JOBID_SIZE) {
                CERROR("Invalid jobid size (%lu), expect(%d)\n",
-                      (unsigned long)strlen(jobid) + 1, JOBSTATS_JOBID_SIZE);
+                      (unsigned long)strlen(jobid) + 1, LUSTRE_JOBID_SIZE);
                RETURN(-EINVAL);
        }
 
@@ -433,11 +433,11 @@ static ssize_t lprocfs_jobstats_seq_write(struct file *file,
 {
        struct seq_file *seq = file->private_data;
        struct obd_job_stats *stats = seq->private;
-       char jobid[JOBSTATS_JOBID_SIZE];
+       char jobid[LUSTRE_JOBID_SIZE];
        int all = 0;
        struct job_stat *job;
 
-       if (len == 0 || len >= JOBSTATS_JOBID_SIZE)
+       if (len == 0 || len >= LUSTRE_JOBID_SIZE)
                return -EINVAL;
 
        if (copy_from_user(jobid, buf, len))