Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3360447rwb; Tue, 16 Aug 2022 01:12:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR4fRpYa/1XDyLT4Yez9cN2ISxs2vo+zqE37PBMlntT2IltyAHZOyGVSbcK2LQUgVe3LVEoy X-Received: by 2002:a17:902:8214:b0:172:6522:4c05 with SMTP id x20-20020a170902821400b0017265224c05mr12222952pln.173.1660637560909; Tue, 16 Aug 2022 01:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660637560; cv=none; d=google.com; s=arc-20160816; b=EOk84jzWi0xn3CeHF44HM5IYXRBjro/bcOfTSe0NQjD91NgqMwHtWDKWCTMtxBfHWJ Spn6v6fqiaGefjhyYTv7tFTOBRUbYdcR2hEpUVGmZ+qXHlp6eyYQgHY7HFfrblU5Fw4F epDa/Y2tESPqz0XmfptUB75DH3t8OGfS0Tm9G05TCs3lX225OaFuVsix+xiUlvKFqW+y dW8rEWJXs11ofBHEXgOE9rjTq6IraxsNJ9PLt67QSxCB7En+3EADb4dv8iAoIZNJBGPU BtxoPg2AgKum9A5Zf6x3Rps4wrgfnm02kQQHsTgLrFVvAG41BUjVwYxlnqzVAfsgtmu1 B4sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Iza1oqjuo3XNU4gTieikiy26og8NUyr8rNvTEUylWOg=; b=IWhMBqMOMi6OSp3Mmf+vpE/EYXV7jlk+JYgTyZb0U07elZLBIUfsF5LmRG63SmqJig PEV4RBkq9dZhstFOibkdUimIfM/uZGBXXogfPm8gRCbPvIOEUU2dbapaefOFHrPW+gkB AwLF5gA3dhtaiAcaGVJH4abat23waNyTXSc/ckhe7dJRRWW8FOrDuHZ/KN2NlFp32+Jd fXX3Yn+b5OtUYRc+IUW2rw/IBMio+2eiFjexlgdaIf6iGR+vgleabyXSD79I2VvwOkUw ju2xGw1cpep8Rb0+do4VByzl5BWeFKs2R/znwxob+KTrdxBJrhLIADQXINx7UVeAe5xl AYNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf26-20020a656d1a000000b004277f15471bsi9113334pgb.448.2022.08.16.01.12.29; Tue, 16 Aug 2022 01:12:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231442AbiHPH7x (ORCPT + 99 others); Tue, 16 Aug 2022 03:59:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231431AbiHPH7a (ORCPT ); Tue, 16 Aug 2022 03:59:30 -0400 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2C133ECF6; Mon, 15 Aug 2022 22:16:21 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VMOlAPD_1660626976; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VMOlAPD_1660626976) by smtp.aliyun-inc.com; Tue, 16 Aug 2022 13:16:18 +0800 Date: Tue, 16 Aug 2022 13:16:16 +0800 From: Gao Xiang To: Sun Ke Cc: xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, yinxin.x@bytedance.com Subject: Re: [PATCH] erofs: fix error return code in erofs_fscache_meta_read_folio and erofs_fscache_read_folio Message-ID: References: <20220815034829.3940803-1-sunke32@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220815034829.3940803-1-sunke32@huawei.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 15, 2022 at 11:48:29AM +0800, Sun Ke wrote: > If erofs_fscache_alloc_request fail and then goto out, it will return 0. > it should return a negative error code instead of 0. > > Fixes: d435d53228dd ("erofs: change to use asynchronous io for fscache readpage/readahead") > Signed-off-by: Sun Ke Minor, I tried to apply this patch by updating the patch title into "erofs: fix error return code in erofs_fscache_{meta_,}read_folio" since the original patch title is too long. Thanks, Gao Xiang