From: Hongchao Zhang Date: Sun, 13 Jan 2013 13:15:49 +0000 (+0800) Subject: LU-2336 llog: hide the harmless log message X-Git-Tag: 2.3.60~33 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=100c6012e9decb4cc320e1a75c92ae2431dd5961;p=fs%2Flustre-release.git LU-2336 llog: hide the harmless log message in llog_cat_add_rec, the llog_write_rec could return -ENOSPC if the current log is full, and it will move to the next log file, then it should not be treated as an error. Change-Id: Ie2e203dc01572e170e9a383c63dcc670db093355 Signed-off-by: Hongchao Zhang Reviewed-on: http://review.whamcloud.com/5146 Tested-by: Hudson Reviewed-by: Prakash Surya Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index 3fe67f6..5ba5300 100644 --- a/lustre/obdclass/llog_cat.c +++ b/lustre/obdclass/llog_cat.c @@ -348,8 +348,9 @@ int llog_cat_add_rec(const struct lu_env *env, struct llog_handle *cathandle, } /* now let's try to add the record */ rc = llog_write_rec(env, loghandle, rec, reccookie, 1, buf, -1, th); - if (rc < 0) - CERROR("llog_write_rec %d: lh=%p\n", rc, loghandle); + if (rc < 0) + CDEBUG_LIMIT(rc == -ENOSPC ? D_HA : D_ERROR, + "llog_write_rec %d: lh=%p\n", rc, loghandle); up_write(&loghandle->lgh_lock); if (rc == -ENOSPC) { /* try to use next log */