From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70322C54EE9 for ; Tue, 20 Sep 2022 03:20:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbiITDUE (ORCPT ); Mon, 19 Sep 2022 23:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiITDUC (ORCPT ); Mon, 19 Sep 2022 23:20:02 -0400 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8A822BD7 for ; Mon, 19 Sep 2022 20:19:59 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663643998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4l96y7W2Pt8M88Ll0M0moh/gfORDHvn+1u/UjSg0jVw=; b=geKVrdExE9tc1o1+pxvfG6B3hT3rN2r4k63kXVPg9vidYPCswwAqMIKzLUMZpNvnwLfs+x sPDHIVxsvRcuaEnK/hvXO55CXTXYJ0CHYm+YMsevkbzHL9YnqleOAoHBDYcEuEu6avnf3C AfuzTFUHFTe3qCULn6nrNtXzvLucERk= MIME-Version: 1.0 Subject: Re: [PATCH v4] mm/hugetlb: add available_huge_pages() func X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20220920015122.68064-1-xhao@linux.alibaba.com> Date: Tue, 20 Sep 2022 11:18:57 +0800 Cc: Mike Kravetz , Muchun Song , Andrew Morton , Linux MM , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20220920015122.68064-1-xhao@linux.alibaba.com> To: Xin Hao X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 20, 2022, at 09:51, Xin Hao wrote: > > In hugetlb.c file, there are several places to compare the values of > 'h->free_huge_pages' and 'h->resv_huge_pages', it looks a bit messy, so > there add a new available_huge_pages() func to do these. > > Signed-off-by: Xin Hao > Reviewed-by: Mike Kravetz Reviewed-by: Muchun Song Thanks.