Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2040455rdb; Sun, 19 Nov 2023 23:13:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+EQEw2/b1MItGDFUkDdWcpwzUEhW6SZO7VdFDGOiwE9QB9NigkLyWP+s+EnTWTBM9Mbcq X-Received: by 2002:a05:6a00:440e:b0:68f:cb69:8e66 with SMTP id br14-20020a056a00440e00b0068fcb698e66mr10293121pfb.15.1700464430517; Sun, 19 Nov 2023 23:13:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700464430; cv=none; d=google.com; s=arc-20160816; b=vuPRNNmTlQQOeEbZI8vUDAhuTjEfXh3BF10itYbxGNAyrHAgH8nnFje8uStu658eIr YwO9Gdl3ZQ49QR3pfsHk4uygUA4zU87AXBQCeHmhxJL8D/xte/ucFWGqPIfBrxBkEsSw QgORQikT7nD/lr3xyu5IeP0SbRA19ix/80cKPoEVUo09n6Rxi3bzmMLIBQnl9o/HEUki M5clLI3qLVN30c0+5SPr1Ouxq89SI4XZUuH4Bj9bJdgKWTfry73XaxFR7sWnR+S4MSke sryzBaGlNI228qpSbWIqixTdBa5+2szz0Zr/wpUPKbj9prT2+nCQDQgRqw8Y3M/Za96y WS6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BJAegsGMEAsqPHcwildrmHLCgFp9mNVCImkTSvfwCSs=; fh=j0kvwE5VKRXsi9Rs9zsWPRuwb9ROWbFkG4IPmPLlwOw=; b=YY7VFeZ4X+ueLk7VEPtZotHOBaf0hWKwr/9lXZLCJbwGWK0ys/44QylW5+gVU+/Hz+ mFA8G7wMPecQHjO53LOxeASqInZB6eXtASUUaG7VwGRFthI9jvPanD+3Wo1JXEzeFa0a x/4wj8hp0lf91KFYiCwPyk3EIDN3faQ8sW5PzwPeq5mR3umZJL0UAgsUqs8Fbw7iD9Vb 7BxCJ4a/wW2vTWzR0ZIT954mtp4lU1lZTbw2f3fMVKWB6QwtlMjoi8kq+q4SDjw7oakA V2cuzwvviGEVTOLKCYXr6+BPI4oRp3tr0oPw8AksPI2Cn9Gi7gX9tKBMLG/VE5pXdDsB Tguw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=RZuvEUTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o2-20020a63fb02000000b005bdf596188asi7219661pgh.667.2023.11.19.23.13.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 23:13:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=RZuvEUTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DA214805F960; Sun, 19 Nov 2023 23:10:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232075AbjKTHKh (ORCPT + 99 others); Mon, 20 Nov 2023 02:10:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232090AbjKTHK0 (ORCPT ); Mon, 20 Nov 2023 02:10:26 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41B8ED8 for ; Sun, 19 Nov 2023 23:10:06 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ce5e65ba37so17696755ad.1 for ; Sun, 19 Nov 2023 23:10:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1700464205; x=1701069005; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BJAegsGMEAsqPHcwildrmHLCgFp9mNVCImkTSvfwCSs=; b=RZuvEUTwzMJaXyQftBdE3+xXTm0zN6PT0wf9hzJwVo/OhkE0EGafVPBX/+TBSiDIud jBvNgzE2mSjt1WKQOJ6QgtKfVaLscjLD+leKspUrmwNAOFe0twS7IoPoCo8z2M2zzvwh d0Mg2XjhIORdFse/Nl5UkqaQc1bt9BsOSfW1gSD0gFBfHpmkUkLQkxN8EDnhB0LQaCCo gwB0h8sWwHAp0bmCehzeC1LQWphh2LomZtoCKHd9+TLXjOxLyYjrh2pcOAmWn6dEPhbX lqmc6AYl8psUIotbi5D9l/ZZKg/S1InPmLOAQWJTYh4iUjzBlic972ecRT+JRIKCxVR0 6tPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700464205; x=1701069005; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BJAegsGMEAsqPHcwildrmHLCgFp9mNVCImkTSvfwCSs=; b=L4GoeUwUppWvmxUkHdLio7QNSRrji/I3rhKAWEmbPLwvOmfW4KuuKycbvjxAEFi308 8hEAqXptGfFMmLy5P4nObk9J8I3rpsZF3nS9a71053yny/mKBlo5DBFPHJciExLMDsPt MrjyN6VQlj03X1KO6dQJf+Ap+Gdm5qyhzczGnbJvmsHv+mAvVE+DxfFwq5r2xWJTSeiz ZFyuwcwo1GGKvqeC5ZK08bDejWJqYzmpQ0eW+8uOSZa/v/bKBKaFROrVxIB60TrB15V4 N+Sb8IzKNXH7ApFCzRXww4ujk2iTB1Qp53JreqGMoyA9jc2MdFHtH5rnhgtEDi5O7bDS Tn8g== X-Gm-Message-State: AOJu0YyhiiMVdfzPlejudOgPinCDzlAJewoLhtIcbOHaA1KVBUBbaldr D84e1t/pS2EKq/IVlS9JY+sJ1w== X-Received: by 2002:a17:902:d2c4:b0:1ce:6630:1585 with SMTP id n4-20020a170902d2c400b001ce66301585mr7924553plc.23.1700464205725; Sun, 19 Nov 2023 23:10:05 -0800 (PST) Received: from GL4FX4PXWL.bytedance.net ([203.208.167.146]) by smtp.gmail.com with ESMTPSA id d4-20020a170902cec400b001ce67fab3a2sm3698143plg.261.2023.11.19.23.10.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 19 Nov 2023 23:10:05 -0800 (PST) From: Peng Zhang To: Liam.Howlett@oracle.com, dan.carpenter@linaro.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, Peng Zhang Subject: [PATCH v2 4/5] maple_tree: Delete one of the two identical checks Date: Mon, 20 Nov 2023 15:09:36 +0800 Message-Id: <20231120070937.35481-5-zhangpeng.00@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) In-Reply-To: <20231120070937.35481-1-zhangpeng.00@bytedance.com> References: <20231120070937.35481-1-zhangpeng.00@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 19 Nov 2023 23:10:48 -0800 (PST) There are two identical checks, delete one of them. Signed-off-by: Peng Zhang Reviewed-by: Liam R. Howlett --- lib/maple_tree.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 3d894f849e57..bf64d080b376 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -4117,9 +4117,6 @@ static inline bool mas_wr_append(struct ma_wr_state *wr_mas, if (mt_in_rcu(mas->tree)) return false; - if (mas->offset != mas->end) - return false; - end = mas->end; if (mas->offset != end) return false; -- 2.20.1