From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D7491C2E for ; Sat, 16 Dec 2023 03:23:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="thEZbMM8" 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=zvGx6PP/uRDz9dSF69qI0IfQy2mDB445jARJru4hM9E=; b=thEZbMM8tE+gqTe19eS8twWfyo DJxfdx8KapmltVHgpYmGeZSKu7GOkrrnsKXmRJABYAxLagjkJgj6DWGt0dxj0c/on8NPg9nw6xPEa rYhWCDqs1qes9uYU54zK5usRZYl8kdfQIHg+ptO1VgSoYFlXNV/KVJAgva2N6bDByrinhcvLO0gSk /CFBnVJWP2k0lavnekQ5reH6FuGjNAXuMazGaW5CSTxa4PpZquYyljbUAsjpFDNOQIGLurIH5XVdQ jYyKwx9V7oboYwNjzLDtWdTFVAOmPE3RHhfQGYm5WaCFYTk9k9gB1HcC6SBrKZcmg/PO09M+0pEMJ T19p/LCA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rELHB-0067r7-7f; Sat, 16 Dec 2023 03:23:41 +0000 Date: Sat, 16 Dec 2023 03:23:41 +0000 From: Matthew Wilcox To: Yajun Deng Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: page_alloc: Simplify __free_pages_ok() Message-ID: References: <20231216030503.2126130-1-yajun.deng@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231216030503.2126130-1-yajun.deng@linux.dev> On Sat, Dec 16, 2023 at 11:05:03AM +0800, Yajun Deng wrote: > There is redundant code in __free_pages_ok(). Use free_one_page() > simplify it. > > Signed-off-by: Yajun Deng Reviewed-by: Matthew Wilcox (Oracle)