From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (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 463353B27CF for ; Fri, 3 Jul 2026 10:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783074125; cv=none; b=koKFw0VKcdudpF0D1nc84DC9Q48I2xPcYd2voY4cKTZAjCpPFKaxzwpeLQsf0ii08pcrrl3N2SqydXqJzOvh6V8lBqsiti3OLhnYrU6t+TOTv3w0rCd02UvkuvCqGMIbrm8BnebRLaM7RfCgQSrXy/lD5yOXVT4wUwNYv87Z4YQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783074125; c=relaxed/simple; bh=UCfZx+03VuKV5KbdUrtfrc62wyaRC4jJXsUxJMuOZtE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=AUyshSrLKSYwph0EzaKwv5/p03082GtN7h4CGAuG2knQ3cRxLfmAV8U5fC/QdRTllYy+Z47gdqbWJnQnf+EMSkNj6maNXALrLWA9V9OTkqK39hM6nug+1zl/oKsKeQczEKxHryUZC7Ix217shdF2tFlHqVcKvO2tm15KRiOZrZk= 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=CMk4A1ly; arc=none smtp.client-ip=91.218.175.189 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="CMk4A1ly" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783074120; 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=UCfZx+03VuKV5KbdUrtfrc62wyaRC4jJXsUxJMuOZtE=; b=CMk4A1ly+G2fYCzb80TaV1guaJXcy6PlhSjXm3p4qWf1/R2OD8c9r4vd9eNv1x7a0QsWTl 6kWJLBYz+9Di8HDqfoG42cZ62OTRvDw3DJ2HRNdjFrOze7VQgLt0rqclImDT+cPIfJf4AT WSc1439mr/Rg1tRkc2IiKavDdHBiyVs= From: Lance Yang To: usama.arif@linux.dev Cc: akpm@linux-foundation.org, david@kernel.org, chrisl@kernel.org, kasong@tencent.com, ljs@kernel.org, ziy@nvidia.com, linux-mm@kvack.org, ying.huang@linux.alibaba.com, baoquan.he@linux.dev, willy@infradead.org, youngjun.park@lge.com, hannes@cmpxchg.org, riel@surriel.com, shakeel.butt@linux.dev, alex@ghiti.fr, kas@kernel.org, baohua@kernel.org, dev.jain@arm.com, baolin.wang@linux.alibaba.com, npache@redhat.com, liam@infradead.org, ryan.roberts@arm.com, vbabka@kernel.org, lance.yang@linux.dev, linux-kernel@vger.kernel.org, nphamcs@gmail.com, shikemeng@huaweicloud.com, kernel-team@meta.com Subject: Re: [PATCH 1/6] mm: add softleaf_to_pmd() and convert existing callers Date: Fri, 3 Jul 2026 18:21:50 +0800 Message-Id: <20260703102150.5461-1-lance.yang@linux.dev> In-Reply-To: <20260630164143.1595669-2-usama.arif@linux.dev> References: <20260630164143.1595669-2-usama.arif@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=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On Tue, Jun 30, 2026 at 09:34:38AM -0700, Usama Arif wrote: >Add softleaf_to_pmd() as the PMD counterpart to softleaf_to_pte(), >completing the symmetry of the softleaf abstraction for page table >leaf entries. > >The upcoming PMD swap entry support needs to construct PMD entries >from swap entries. Converting existing swp_entry_to_pmd() callers >to softleaf_to_pmd() in a prep patch keeps the feature patches >focused on new functionality rather than mixing refactoring with >new code. > >Acked-by: David Hildenbrand (Arm) >Reviewed-by: Zi Yan >Signed-off-by: Usama Arif >--- LGTM. Feel free to add: Reviewed-by: Lance Yang