X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_hsm_cdt_actions.c;h=9d61d53125fca1100d71b22f9c7cf3339b442bc0;hp=c2c68d1fc0e65520750e5bb1df6fb37dca8a8a94;hb=1ce2c6f33c104cafbf42828551e338d0c5e7602a;hpb=2b294992edce5af7b79d4300ed3aa1ea6a8db850 diff --git a/lustre/mdt/mdt_hsm_cdt_actions.c b/lustre/mdt/mdt_hsm_cdt_actions.c index c2c68d1..9d61d53 100644 --- a/lustre/mdt/mdt_hsm_cdt_actions.c +++ b/lustre/mdt/mdt_hsm_cdt_actions.c @@ -365,12 +365,12 @@ static void *mdt_hsm_actions_proc_start(struct seq_file *s, loff_t *pos) RETURN(ERR_PTR(-ENOENT)); } - CDEBUG(D_HSM, "llog succesfully initialized, start from "LPD64"\n", + CDEBUG(D_HSM, "llog successfully initialized, start from "LPD64"\n", *pos); /* first call = rewind */ if (*pos == 0) { aai->aai_cat_index = 0; - aai->aai_index = -1; + aai->aai_index = 0; aai->aai_eof = false; *pos = 1; } @@ -471,7 +471,7 @@ static int mdt_hsm_actions_proc_show(struct seq_file *s, void *v) mutex_lock(&cdt->cdt_llog_lock); rc = llog_cat_process(&aai->aai_env, aai->aai_ctxt->loc_handle, hsm_actions_show_cb, s, - aai->aai_cat_index, aai->aai_index + 1); + aai->aai_cat_index, aai->aai_index); mutex_unlock(&cdt->cdt_llog_lock); if (rc == 0) /* all llog parsed */ aai->aai_eof = true; @@ -549,7 +549,7 @@ out: /** * lprocfs_release_hsm_actions() is called at end of /proc access. - * It frees allocated ressources and calls cleanup lprocfs methods. + * It frees allocated resources and calls cleanup lprocfs methods. */ static int lprocfs_release_hsm_actions(struct inode *inode, struct file *file) {