Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp344655lqd; Wed, 24 Apr 2024 04:22:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk8pru8vRc9asogyAHTqR7xZwSy//2lGNS2B2ZnQxPOWJfBS6PfiHbGn2F/jxNL8MXyltmZnaVSxynJJ3Lb7dx+cW3id14Z7KF1vreRw== X-Google-Smtp-Source: AGHT+IFUUhGwrhtrG+/c9s8rwDSuPxlu8fFDCQ7lhYCvZdEIWAWE2OLyaTKu9piR8sHv7u5iuHvy X-Received: by 2002:a17:90a:7088:b0:2a5:df97:b with SMTP id g8-20020a17090a708800b002a5df97000bmr3031657pjk.18.1713957730155; Wed, 24 Apr 2024 04:22:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713957730; cv=pass; d=google.com; s=arc-20160816; b=WxLwY2cMXIxe0muZKqUUJXgiAsVjgSgDLrV286/lRewZA1CLFo9b1Zrm6aSb02XymR dsAnf7VUs4pjccNf06L7SMBVqg+0EUbY+LkWC6+pAk0nlMlvsiWqeH/BUy8srNF+AVpO fkRld2jZwnntLqHwjesnEF/6kC+2/ST8lzlSobKny33ORtWQNHGj2ixTEQRHmB9VuYEC SGkyR7cFN9TQt6Hfuv22/hVXIkon8SBY0/mPqUN2e9LuTBipx4Lfv+xlFVSQjIhLzIFf 3IpVJ5YpB849Pg5YPrW23wI10T14abzviKHwjiDMK3ExGva1yf4flN0qcvwNEWjPPksX qJfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Ng39GRBnsItm8XR2jbJ/4RhY77ypkbK0TVgWZrO11AY=; fh=9rQFrPFBARmmCJXYLx1B6XHTs/8hXPfH3SfQLB+RVaM=; b=G80JCwlgzqToOUei/rEeLbujbFlmn+qvCaBko7MD/pRBu9zPmW55rQMdv8I1YH9Tr7 3GMJyC6e/o9EJogfpyR8tP6wE7zd3sdAuZKe2KRBM2Nq5pI9KYYqpTENnQ+f8rEgwLHw CNZKE3qfdNoPigeY4lsbtCpuecvvSxzv5em1Ej7PAN7plNMJ+hdrbYKrEy0oJZRysuB+ BkRJTt6/scrKm2uW+YASvpWxsYiGMoG5bZ2BwSTo4a27nhpk3X6uig4jWQMhphfn9Acv /jiuDAQ+GlFzQNX2hx8qI9pMnMxGOrnpJMAc53oOkDZ0bL6IVKQrWxfWfdRsU4Ls5n5c 6KAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=PEYVFZxx; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-156791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c6-20020a17090a8d0600b002ae8d5947dasi3201646pjo.33.2024.04.24.04.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 04:22:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=PEYVFZxx; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-156791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C34CA287E19 for ; Wed, 24 Apr 2024 11:22:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2D6115A494; Wed, 24 Apr 2024 11:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="PEYVFZxx" Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (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 2D1EC142E62 for ; Wed, 24 Apr 2024 11:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.119 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713957722; cv=none; b=Q51nl+PsAYIrRA5KxtjBxJyNhgWMasEvWGM3Rf1eBRzsRiYpVJJ+CFpA3skz/ukP42PEbS3gxzO7vZ/uDF0BQ+5x34HAk1MwvoVT8QtFW1ONsE8pBYAVS6MmZwOpupEQ+AZ/LlAl2QKfNiVuZrzTcTvPpPUGi2zFSCVXyjib9BU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713957722; c=relaxed/simple; bh=jXBd7jwfXzMtKsDnykh8KKkP0FF2C8w94PpTyyl1JWA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dChzqJHxLgxyXOzJOylOLw9UodvhFbrNSY/D46dRjEPl/hTT13o2KFMfL1J1lq19h/tnpxP9xyqhtPohfJ0ztfQk46iC1f9sxjRahbqjw9neJ1mBLGkYsz7BTIc+eC4yclLeFXtYGwuIOGvcFt0LzdkHl4Cowu558yqkRbt4Q4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=PEYVFZxx; arc=none smtp.client-ip=115.124.30.119 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1713957712; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=Ng39GRBnsItm8XR2jbJ/4RhY77ypkbK0TVgWZrO11AY=; b=PEYVFZxx4gqw0auyu2KoVl5LgWb6lQFQgUrQd/afgaqSL80lElcSgA4OoXbckITeasJgFyb97J8nuuKy/jdGU75eTZcKsgaLwvD5+gmGd4mU/V1noX+mELrRc8YX3pTNPUghyOk/1SdGoha/HbHfBMsG434O+4GlbLfpsQECDtI= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R471e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067110;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0W5C6jzC_1713957710; Received: from 30.221.147.25(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0W5C6jzC_1713957710) by smtp.aliyun-inc.com; Wed, 24 Apr 2024 19:21:51 +0800 Message-ID: <1c18da0e-b0cb-4eb2-9eab-19a68fa416cd@linux.alibaba.com> Date: Wed, 24 Apr 2024 19:21:50 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH -next] erofs: modify the error message when prepare_ondemand_read failed To: Hongbo Li , xiang@kernel.org, chao@kernel.org Cc: huyue2@coolpad.com, dhavale@google.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20240424084247.759432-1-lihongbo22@huawei.com> Content-Language: en-US From: Jingbo Xu In-Reply-To: <20240424084247.759432-1-lihongbo22@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/24/24 4:42 PM, Hongbo Li wrote: > 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; > } > LGTM. Reviewed-by: Jingbo Xu -- Thanks, Jingbo