Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3082065iob; Mon, 16 May 2022 12:40:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcy5bjELHU6+p1cCCh4sjvnlLDLXoCYU/GFAQgWYY7SopAMEeE73RheIxS0AabyxSJbNaU X-Received: by 2002:a17:906:3099:b0:6f3:e8e1:87cd with SMTP id 25-20020a170906309900b006f3e8e187cdmr16691698ejv.290.1652730032671; Mon, 16 May 2022 12:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652730032; cv=none; d=google.com; s=arc-20160816; b=kTxX/NUeRWiGJCtf6lUseyjVCkPsve+GfWUb/ZzAgj0H7NqRjLcdx47F2xChzh2KFz 9busYpILxhm9fqRM9mc7mwy59O4MVYsySWA+WGLHKX7ZigGRBiTSY0GkUgMo9Ppgilrh 0ezUzWY7Fo5vdtzF2uM591tpAW8MpmvhGjMSJtaMv4zz9XjoPe17EwgzHfDZSTbEL9sm 0TB48McNwMFMFWkX5WmD7285M87WEl2cl5SHf53GLorbe57uJQNtCNp2OuiXsjDbbtOG E7tqOpkIq0HfARi0pPfGbg16WYtlItjY6jhd7XZg0jTmty87ThIKHNYJx8421Jrl4TdY De4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=wJrAUDUz1ReS0AW7OJ/IAwOQo/DAANMnlj0WC4+kppY=; b=MhZAfo3T/rx4Fsu/Wr0p4j+5cIy/cnCHHgMvy28ILbXXLHTmI32FBkatI3nUx6eaeM JT2L4GZ5cGHthP7peXogPs3/VPmLL9aUahGVRjqoxnvy0iVSutVWHa7bUkZBcr6HXdLS q+VtqF6hK2uOL8vzxvkfpmpLTGO0xKIcB30LNI3yFtEQhLkdDGDgUPWYBSqlpRgTxlL7 nYiSLD+taokHvffTJE2n7qsYqNT6iUZ9z+s1rftixssW1v0BnKFUlzke6qtNeaQpcOLg gBrPwzXYHZyeun2KvGCt+LMT8XEnXhYk15ZKyff7q5jW15wAyVfIvTIqyIJAej6usvtI /2Ow== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a056402084900b00425e86251c4si928214edz.182.2022.05.16.12.40.06; Mon, 16 May 2022 12:40:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234831AbiEPRme (ORCPT + 99 others); Mon, 16 May 2022 13:42:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238445AbiEPRma (ORCPT ); Mon, 16 May 2022 13:42:30 -0400 Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D52D377D6 for ; Mon, 16 May 2022 10:42:27 -0700 (PDT) Received: from [192.168.1.18] ([86.243.180.246]) by smtp.orange.fr with ESMTPA id qejfnDLFJpmc6qejfntg18; Mon, 16 May 2022 19:42:25 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Mon, 16 May 2022 19:42:25 +0200 X-ME-IP: 86.243.180.246 Message-ID: Date: Mon, 16 May 2022 19:42:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] btrfs: Fix an error handling path in btrfs_read_sys_array() Content-Language: en-US To: dsterba@suse.cz, Dan Carpenter , Qu Wenruo , Chris Mason , Josef Bacik , David Sterba , Qu Wenruo , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-btrfs@vger.kernel.org References: <120e4c34-da48-7d86-4a50-c31a3804600d@gmx.com> <20220516135407.GM4009@kadam> <20220516150148.GX18596@twin.jikos.cz> From: Christophe JAILLET In-Reply-To: <20220516150148.GX18596@twin.jikos.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Le 16/05/2022 à 17:01, David Sterba a écrit : > On Mon, May 16, 2022 at 04:54:07PM +0300, Dan Carpenter wrote: >> On Sun, May 15, 2022 at 06:57:25AM +0800, Qu Wenruo wrote: >>> >>> >>> On 2022/5/14 20:01, Christophe JAILLET wrote: >>>> If alloc_dummy_extent_buffer() we should return an error code, not 0 that >>>> would mean success. >>>> >>>> Fixes: a1fc41ac28d3 ("btrfs: use dummy extent buffer for super block sys chunk array read") >>>> Signed-off-by: Christophe JAILLET >>> >>> Reviewed-by: Qu Wenruo >>> >>> All my fault, thanks for catching it. >>> Qu >>> >> >> I sent this patch in January and David was going to fold it into the >> original patch but it got lost. Thanks, Christophe! Hi, Not exactly. Your patch was: - if (IS_ERR(sb)) - return PTR_ERR(sb); + if (!sb) + return -ENOMEM; Mine is only: - return PTR_ERR(sb); + return -ENOMEM; So for some reason, what you had reported was just half applied. (or half fixed by someone else) > > I found my reply to your fix that I folded the fixup, but then it got > lost for some reason. Probably because I picked the patchset from > mailing list again and did not take the local branch. I'll fold the fix > again as it' still in the unmerged branch. Thanks. > just in case, the Fixes tag in Dan's patch leads to: "Notice: this object is not reachable from any branch." I don't think that it is of any importance if the fix in folded, but in case, I let you know. CJ