From 8a60d7adc2f453c4be85a044a9071a1ab741d8fd Mon Sep 17 00:00:00 2001 From: Mikhail Pershin Date: Thu, 6 Jun 2024 14:12:00 +0300 Subject: [PATCH] LU-15644 llog: don't report warning in no error case Fix wrong check which includes rc == 0 valid case wronly Fixes: 53d946a1222 (LU-15644 llog: don't replace llog error with -ENOTDIR) Test-Parameters: trivial Signed-off-by: Mikhail Pershin Change-Id: Id6e7b2cd42b4769765c67d418552a13f048ea050 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55337 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/obdclass/llog_cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index 89d49b4..148b919 100644 --- a/lustre/obdclass/llog_cat.c +++ b/lustre/obdclass/llog_cat.c @@ -733,7 +733,7 @@ int llog_cat_cancel_arr_rec(const struct lu_env *env, } llog_handle_put(env, loghandle); - if (rc != -ENOENT && rc != -ESTALE && rc != -EIO) + if (rc && rc != -ENOENT && rc != -ESTALE && rc != -EIO) CWARN("%s: fail to cancel %d records in "DFID": rc = %d\n", loghandle2name(cathandle), count, PLOGID(lgl), rc); RETURN(rc); -- 1.8.3.1