Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp278318lqd; Wed, 24 Apr 2024 01:51:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWO+fIdHp9kigdjjyUqGzcmvSoGNHJeV03Q8ZWrZMOxyZzW1d8RWwPDcpyXZRtzh26LL7EEyi6WDAf+wfdKF6gi+TWveDKmVNBQN3eRLA== X-Google-Smtp-Source: AGHT+IEUR/fb2Q2/t4UT1MTECOvraPuqkqcoYeVFuVhg8DLZYl5tOkAwApqnZi1hUrTwsCOmjaYk X-Received: by 2002:a17:90a:f2cf:b0:2a7:7cae:8ec9 with SMTP id gt15-20020a17090af2cf00b002a77cae8ec9mr1471090pjb.7.1713948687982; Wed, 24 Apr 2024 01:51:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713948687; cv=pass; d=google.com; s=arc-20160816; b=qvOrAinilNGZ4Xf3QHksRfY2jwZcfrJPQTcBEdDnAPiptFGd9ByK8ZSqAK0yACvs5x 2EHnbZib6Ls39w7SH9glRXQ3ANurd99rSO97nS/u0csj+sOMXHFUcDXCbEU8ewyGDYZf oDBtJbg8P50N52iov42oG9LKgB90NdzJLlrVdOdYFEEJrqIf9Zsf/15Nd9WfZHZDoHtt W25tGuB778KbRlDy3fQHEoUWwmx3ELcScl0V42O7oa9ZGMPCfrsA1CgPpnXY81jq1Efr VjR3G/SgBGQRYFtN+IS4m1svqJJ5lee3+aQT704YEfhKpnVFvvUMYaMGouDFUX58bpAE 2hQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=3QDRNmAVBJwEI0DjW4Q8QZxGCbMGYjzUHZhHfViYzqA=; fh=aaHsautoI/GjjeQ0LRSJP5wFqK4/nA+xh5DDOhjIsDg=; b=fzV+cz2S2QFWozSkrVlY50A3cGCOdWgFNem98/m+JxugjrA+f13SnD8WnaTxUBHLM/ ZhGXiV2T4T2JXdQQM2pUcjNoCtgemSW9YXXNMIJPQCIw9JPKoRRQtUpkd6sjp5Xn4Ns7 h1YLfJt76eODTkCZxm569nS7SLrq45N9C12RIqtGzffPepnGX96EzPfwaXp/wyglCB9j oA0hVMvA+uOadTRpGak98kfUMDG3s5fKkY/suNcLblGIa4TUHjGG7GNj29UhMJLtSa1/ VdqIsRfCzsDVP2kPV5rkzNVqnqER8u9hAG4poX4GcFSGrxTbr7PL7b+RE3/xIQq/0nFE T2Ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-156564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z8-20020a17090a014800b002a4ac8aca07si10882272pje.101.2024.04.24.01.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 01:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-156564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 992DAB218C9 for ; Wed, 24 Apr 2024 08:42:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E927158851; Wed, 24 Apr 2024 08:42:44 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09057156F2B for ; Wed, 24 Apr 2024 08:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713948163; cv=none; b=ZyEC4QvQegZfLA4L4ihVDeVjk4+DtRK1ufdG0IFKXQnaqlXlTjh3opMa5RaVI92Dzzk4T7RxlGkQSDZoP7S/TVwO3FNGKoUDawJ3G8lni4FPeUjlDr7/C+bBnP6JZePqnFrgAKIRYQt1Q0sCBdjVh2VKWO2OdkVMA+f8Lls0+WQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713948163; c=relaxed/simple; bh=p3kEmUvP3hb0uHXNwsP/6B7zN9ddbcUBorXk/271Yc4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=RjuSK/vx6aR9ijql6k9zKwEfZcuuP8/5YRvVh3uw0ulq5pADm8/Enh3fpt/mBuVhT4SgFt2S1j6y0sj7G5/kM7K++bTLYX42SswxUr42WN/DVX7he5n0wYdHV49/7EgUwjl7feeWF/di8HNjlACU6YMw9tqneprurZPSAHLy6/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4VPXTy0jFYz1j0sv; Wed, 24 Apr 2024 16:39:34 +0800 (CST) Received: from dggpeml500022.china.huawei.com (unknown [7.185.36.66]) by mail.maildlp.com (Postfix) with ESMTPS id 14EB518005F; Wed, 24 Apr 2024 16:42:38 +0800 (CST) Received: from huawei.com (10.90.53.73) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 24 Apr 2024 16:42:37 +0800 From: Hongbo Li To: , CC: , , , , , Subject: [PATCH -next] erofs: modify the error message when prepare_ondemand_read failed Date: Wed, 24 Apr 2024 16:42:47 +0800 Message-ID: <20240424084247.759432-1-lihongbo22@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500022.china.huawei.com (7.185.36.66) When prepare_ondemand_read failed, wrong error message is printed. The prepare_read is also implemented in cachefiles, so we amend it. Reviewed-by: Gao Xiang Signed-off-by: Hongbo Li --- fs/erofs/fscache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/erofs/fscache.c b/fs/erofs/fscache.c index 8aff1a724805..62da538d91cb 100644 --- a/fs/erofs/fscache.c +++ b/fs/erofs/fscache.c @@ -151,7 +151,7 @@ static int erofs_fscache_read_io_async(struct fscache_cookie *cookie, if (WARN_ON(len == 0)) source = NETFS_INVALID_READ; if (source != NETFS_READ_FROM_CACHE) { - erofs_err(NULL, "prepare_read failed (source %d)", source); + erofs_err(NULL, "prepare_ondemand_read failed (source %d)", source); return -EIO; } -- 2.34.1