Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1655875ybl; Tue, 3 Dec 2019 10:31:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyGrKkCHIakjmXB3FUSvEu29h27QUgjtfP/jBTNgTh0ZhUUvkspkeSTshFseuSvz3/3kBWy X-Received: by 2002:aca:5303:: with SMTP id h3mr4577574oib.109.1575397904747; Tue, 03 Dec 2019 10:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575397904; cv=none; d=google.com; s=arc-20160816; b=fbEECVD1mhyWh4Wdtf4PGogDgcXZnqMBy0aXtR7h7i5o1ASzTYAuq54IVteB2geFxq 2QONpfkfPFfLCXeeMSZ243woQPfvN9zP0KF4TGF3DYJX/8IeDGVXRZzOJ5yg/j7LezYx LgpO59aYpty+7GVR2UH5UPXKAx14DPOfK7nVkwV+ySTpunV+zoPQzfvUO7s5uFPl9VIa u37i5Qom72HYINtlBTVV4nqMwoxtaOyTUl1VcCrJRh1vjfFC0CA5BEObT5SIwGV2Yknc 0sXnfJDiCxJJkXl4WG729+fdGgXsIBgA1mdnUMbqMYtU9rYO6aI1Zc/KpKcP7flaBlln mVLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=676GUvh8yhP80JPwcYKfWXbC0AaQLfAgk41DTuuhyak=; b=MWEm6tQBipVqj2sdoQ1CeO5nj3ZxB0x1rU1XfGvlDt9b+hF8eL/K192vyplbsSLdsn eZ9EuGJ3GFVh1GK2ROMsMxgJX6ZM8sQZDjOw+AzN+7S0w+efPOJtLQprIRAFt0W0kaw/ GY4EU9fi6Y4JJXVSyYcIrR1ECFQ+8SqiAfvkUQsB/jNQW90i9OHQpUwTyWFugUWlIsul XqLcL5cSgt9aT3/x60tMAYZKYm6gQph3Lenp7lv8rqyGi1l6D03SLvADE1Be47fZxEYm 75XZFcN7efA4GtZGwzhwU25YZqJuirmWYMDX2WI+T+5UTKpgrugmVdrhII0w5QzTzNPC KSjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si834444ote.135.2019.12.03.10.31.32; Tue, 03 Dec 2019 10:31:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbfLCS3i (ORCPT + 99 others); Tue, 3 Dec 2019 13:29:38 -0500 Received: from mx2.suse.de ([195.135.220.15]:44766 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726131AbfLCS3h (ORCPT ); Tue, 3 Dec 2019 13:29:37 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 28A55B25AA; Tue, 3 Dec 2019 18:29:36 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id D2555DA7D9; Tue, 3 Dec 2019 19:29:30 +0100 (CET) Date: Tue, 3 Dec 2019 19:29:29 +0100 From: David Sterba To: Yunfeng Ye Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, "hushiyuan@huawei.com" , "linfeilong@huawei.com" Subject: Re: [PATCH v2] btrfs: remove unused condition check in btrfs_page_mkwrite() Message-ID: <20191203182929.GT2734@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Yunfeng Ye , clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, "hushiyuan@huawei.com" , "linfeilong@huawei.com" References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 03, 2019 at 04:59:25PM +0800, Yunfeng Ye wrote: > The condition '!ret2' is always true. commit 717beb96d969 ("Btrfs: fix > regression in btrfs_page_mkwrite() from vm_fault_t conversion") left > behind the check after moving this code out of the goto, so remove the > unused condition check. > > Signed-off-by: Yunfeng Ye > Reviewed-by: Omar Sandoval Added to misc-next, thanks.