Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp467311pxb; Wed, 27 Oct 2021 06:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa0G26WmAESLJVS46D20azglEtyV0PuhJ8BywaagFPsrWnyM/yge5ILna+cVHnl5tMb+GU X-Received: by 2002:a65:6158:: with SMTP id o24mr24122764pgv.141.1635341245611; Wed, 27 Oct 2021 06:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635341245; cv=none; d=google.com; s=arc-20160816; b=pViPRq/ZFk8JhCHIEOqquPqAc9OU8hi3lCoXASKCGGBXk5qagKop9JpDKlSeC9i65N 5cgwlSYXqH5GbZ16ZZYw65Bqw1/0rYGXYw5U11YMowmPf1S1O/7IzW79QaV6h1atr8/+ EpZUz4L52m9nhDZ/uHRIqdxzfiKPcL1MwDJVcpfTKVvxrFS3biRj5hiuk4xeqI/lVCt/ FxHBZHQQFhTQqFMxgQwKZEJXsfGxqHsn7WOHYGLh75P4iLcXLWEU8mQbk2Rjs6ZON7LP l0ZFJsT4VW9o1z3Tz/XaWADPWe6RJTvJ4Ly2jv04V9thDHeJQnWe04E2CaSa3RH6o3Kk fCZA== 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:dkim-signature; bh=0lW0nywobAhfvx+Rkg2aIOHXuEPbjaEywp8tzeijQnY=; b=S4v5EPMQJQJEEIX4HbhVThi1pf//IKxXMEVQmAk2GMP8xplpGPZc8yXarBswYqpNb6 E+X8ir7dtYiiOXRiNU0Q4uJH/tnClKoofKcHQOZih8a4F3CvZVlHyLQ+fBzL4IjhfwSc 4oV+8oZt8ZL0BoYEZ8tLAQk3SBnpbwogWhmzu8Q/EKn0C30gX9dwhfVoBsG/H9M82Hbf ytZPHfHm+IwJbt4ZxSNGrRiRwkQXjsmPXLF6tf1cdb6rHg33Tp1Cdf6hBfPSZo7BLHa1 J412c2kLuoEwdnAfRuRpBuo1g0vWEtnd2dl0aJqLYSeQ1idQedtqmWmR7tS4hatTQ4sT dv+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EolnIW9m; 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 v12si53300pjs.18.2021.10.27.06.26.37; Wed, 27 Oct 2021 06:27:25 -0700 (PDT) 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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EolnIW9m; 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 S235946AbhJZXx0 (ORCPT + 99 others); Tue, 26 Oct 2021 19:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236042AbhJZXxO (ORCPT ); Tue, 26 Oct 2021 19:53:14 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F05BEC061570 for ; Tue, 26 Oct 2021 16:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0lW0nywobAhfvx+Rkg2aIOHXuEPbjaEywp8tzeijQnY=; b=EolnIW9mx3J0RUHxcvClKo9Fbg m4hG8it/zH474ircewrDmA988rctW+DLv7MGG54ruE0QeQ4tY/uoyP+i0Ao8VsSDsb0qvocAb2hqg TqPd40v9I1wA9lBd2O+slDvBKDUfwMkAm/bDGAUq5/qtHZFLL1GzIHvBcPEiiTqt/ktEx28YDWa2m 2PbXPDqQ0qfYn9MZYGOtVmJOtJZgu37WlyTWORfE39s9KGYrXEwoK0yimgpSQBZ90oEdsYrQ1VKkv y1F3EFhJbs5h9Hwer4whVM9FysA9lNu5Q6Mts6D0D/1rRo5SP4hGODwK7Q6X0kOeScU4xgdVrlV8A EEJUaOFQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfWCT-00HGNC-4w; Tue, 26 Oct 2021 23:49:56 +0000 Date: Wed, 27 Oct 2021 00:49:49 +0100 From: Matthew Wilcox To: Mike Kravetz Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song , Andrew Morton , Pasha Tatashin Subject: Re: [PATCH] hugetlb: remove unnecessary set_page_count in prep_compound_gigantic_page Message-ID: References: <20211026220635.35187-1-mike.kravetz@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211026220635.35187-1-mike.kravetz@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 26, 2021 at 03:06:35PM -0700, Mike Kravetz wrote: > In commit 7118fc2906e29 ("hugetlb: address ref count racing in > prep_compound_gigantic_page"), page_ref_freeze is used to atomically > zero the ref count of tail pages iff they are 1. The unconditional > call to set_page_count(0) was left in the code. This call is after > page_ref_freeze so it is really a noop. > > Remove redundant and unnecessary set_page_count call. > > Fixes: 7118fc2906e29 ("hugetlb: address ref count racing in prep_compound_gigantic_page") > Suggested-by: Pasha Tatashin > Signed-off-by: Mike Kravetz Reviewed-by: Matthew Wilcox (Oracle)