Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3550197pxu; Tue, 15 Dec 2020 09:30:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7zmLe8wy2RhV3HJtX6iQstEl7CkKoQKBp573Xysgkasl+QDcoyPsUW3siHnp6d48H6QEH X-Received: by 2002:a17:907:c15:: with SMTP id ga21mr28220358ejc.472.1608053418238; Tue, 15 Dec 2020 09:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608053418; cv=none; d=google.com; s=arc-20160816; b=OtNXfQPdvqOudRHWab7brHXX0FUr+pY5IUnCXxd3ueOKgcBBkhkqm+cCC5KZ+bW+L/ 1S5b3iuZBMySpKkneEhNlOwAx0+En3LUwj77S3mFO2vjBfiT7V6E6NrheW+23Ifs630j w8EH+TSroUghTaJkXGOtHqEpeDdutvq5M5esClniPOU83eZ2HYkIHKjzLUXIK/GbwQ4K mxgPLDE9jfeNzmVJM5XIsOb8GQOq6fUI8XoiJrO8+Obp7SpeThKEFXQzVDcnVIL9GE0l yWOIjfRnVnP2mGLt+18ZoXj5K7KKcT4WIjSheO8A60TDbZulke+at5wyyh1TI3Tc6sOC E8bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date; bh=WQEKZ2K22ECsWDEPERUG0oVsY06gx4dPZElE7Moenn0=; b=ljRn3uc5gJDvfGI2jV3pD/6Lr9M3e05Nn6FjToslei2wlWLfN/xOKeuzgWiGBV92WR /4QiNRVfDl826m9kBxnKQw7oIrLn5rtUPMpo/LMcs+Bbvz+dthHLAuE6zJfRp6ivZV+j MxXtb59HWb2Kprto5DgUztC01Mc4US1NBjQ7qH3ONufWvZm6meEnBBEBTExN125ymx75 jqECnYtYEsnnzb/5jX4sL9tUC6HUlIN/+O5EWxOFAnmG5zPaTQijO5bJR9eub+S1zGHD aGPfyg4hYHE4LHZOQ0vN5BaqorG33ogHdYm2fbtAV/7as56i5amMN8a/hZWbh1qyAUzr JYQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si1195205edt.142.2020.12.15.09.29.52; Tue, 15 Dec 2020 09:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731044AbgLOR1J (ORCPT + 99 others); Tue, 15 Dec 2020 12:27:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:35262 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729688AbgLOR1J (ORCPT ); Tue, 15 Dec 2020 12:27:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9DAF0B727; Tue, 15 Dec 2020 17:26:24 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 3B3A0DA7C3; Tue, 15 Dec 2020 18:24:45 +0100 (CET) Date: Tue, 15 Dec 2020 18:24:45 +0100 From: David Sterba To: Zhihao Cheng Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH v2] btrfs: free-space-cache: Fix error return code in __load_free_space_cache Message-ID: <20201215172445.GZ6430@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Zhihao Cheng , clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com References: <20201207135612.4132398-1-chengzhihao1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207135612.4132398-1-chengzhihao1@huawei.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 09:56:12PM +0800, Zhihao Cheng wrote: > Fix to return the error code(instead always 0) when memory allocating > failed in __load_free_space_cache(). > > This lacks the analysis of consequences, so there's only one caller and By "This lacks the analysis of consequences" I was referring to changelog in your patch and I did not expect you copy&paste it verbatim to the next patch :) Anyway, updated patch added to misc-next, thanks.