From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta1.migadu.com (out-186.mta1.migadu.com [95.215.58.186]) (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 3BE0C263C8F for ; Sat, 14 Feb 2026 07:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771053864; cv=none; b=bTMI11Og0cmsly0/187/5hmg1VHcPz3Ds6hSHPS4BPL6deCpIjjmXsbVIqh/J8D7JWI2B/Ttp3SR6l1f7GOn+X6e7I3MteSn5Dw2AVBgJcd1ObI90AQQgcQkY+xEJ8Zk5TlzgbgATV9+hg4p9Cf/2cHOJLwUYD0LoxFuzwLSBPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771053864; c=relaxed/simple; bh=elTxWZ0XccFbYDApTbYsEa53dAA22UTQXbP/eSEh03Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fxb6JmxfBInLPzWiHPlLl/o5k1DOTH/fGJH8crAV/HQyJq3v8hWhcOlvIMEBgGBioDZ83iF9+P/MQ1lc7TBuExTRCduew8Pjf/XzDW3qCH4fVud4SgK6UOxvUFPBkkcbgmKIa2Zncl9PQufEa1z5EQkdNvRkZzCCnKXtlVckZw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=i2yxNUai; arc=none smtp.client-ip=95.215.58.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="i2yxNUai" Message-ID: <74dfa08c-088d-474b-a56a-c55b6f1d2e32@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1771053859; 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=sLBetFBaYu2PeLbGVLo1UPd6kKPXLNuBM/BqMSFx1P0=; b=i2yxNUaiSSgBGp/PtcqcZYOilu3AwydVHA5Ap3PWi0LiC6IK37/YKBzGgUaxda26FOTPpo YUZmjZJcjy7HdpJUh4unDETk0gLA6oWu/EHKPx1DhvjrPDtYL6N5ZUYvB5gLlklSgcL3UN 4nMJuv1z8QSDjapanllmC3ykH/Dbi48= Date: Sat, 14 Feb 2026 15:24:06 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH mm-unstable v1 2/5] mm: introduce is_pmd_order helper Content-Language: en-US To: Nico Pache Cc: aarcange@redhat.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, apopple@nvidia.com, baohua@kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linux.alibaba.com, byungchul@sk.com, catalin.marinas@arm.com, cl@gentwo.org, corbet@lwn.net, dave.hansen@linux.intel.com, david@kernel.org, dev.jain@arm.com, gourry@gourry.net, linux-mm@kvack.org, hannes@cmpxchg.org, hughd@google.com, jackmanb@google.com, jack@suse.cz, jannh@google.com, jglisse@google.com, joshua.hahnjy@gmail.com, kas@kernel.org, Liam.Howlett@oracle.com, lorenzo.stoakes@oracle.com, mathieu.desnoyers@efficios.com, matthew.brost@intel.com, mhiramat@kernel.org, mhocko@suse.com, peterx@redhat.com, pfalcato@suse.de, rakie.kim@sk.com, raquini@redhat.com, rdunlap@infradead.org, richard.weiyang@gmail.com, rientjes@google.com, rostedt@goodmis.org, rppt@kernel.org, ryan.roberts@arm.com, shivankg@amd.com, sunnanyong@huawei.com, surenb@google.com, thomas.hellstrom@linux.intel.com, tiwai@suse.de, usamaarif642@gmail.com, vbabka@suse.cz, vishal.moola@gmail.com, wangkefeng.wang@huawei.com, will@kernel.org, willy@infradead.org, yang@os.amperecomputing.com, ying.huang@linux.alibaba.com, ziy@nvidia.com, zokeefe@google.com References: <20260212021835.17755-1-npache@redhat.com> <20260212021835.17755-3-npache@redhat.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Lance Yang In-Reply-To: <20260212021835.17755-3-npache@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2026/2/12 10:18, Nico Pache wrote: > In order to add mTHP support to khugepaged, we will often be checking if a > given order is (or is not) a PMD order. Some places in the kernel already > use this check, so lets create a simple helper function to keep the code > clean and readable. > > Reviewed-by: Lorenzo Stoakes > Suggested-by: Lorenzo Stoakes > Signed-off-by: Nico Pache > > arches# pick b3ace8be204f # mm/khugepaged: rename hpage_collapse_* to collapse_* > --- Looks good to me. Reviewed-by: Lance Yang