From cf904c8d964fa477cdb83445a03d05e9eda5d65c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 16 Dec 2023 22:43:41 -0500 Subject: bcachefs: bch_err_(fn|msg) check if should print Signed-off-by: Kent Overstreet --- fs/bcachefs/logged_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs/bcachefs/logged_ops.c') diff --git a/fs/bcachefs/logged_ops.c b/fs/bcachefs/logged_ops.c index 4b603746063c..80fcea641e77 100644 --- a/fs/bcachefs/logged_ops.c +++ b/fs/bcachefs/logged_ops.c @@ -63,8 +63,7 @@ int bch2_resume_logged_ops(struct bch_fs *c) BTREE_ID_logged_ops, POS_MIN, BTREE_ITER_PREFETCH, k, resume_logged_op(trans, &iter, k))); - if (ret) - bch_err_fn(c, ret); + bch_err_fn(c, ret); return ret; } -- cgit v1.2.3