From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.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 7D3163F7882 for ; Fri, 29 May 2026 14:47:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780066045; cv=none; b=ClpfWYeqhTDOVSGNXFnnY1RmakCpJNQdxy37VaIKF2RnV65Qj9DCVZF59SavKmuEONi+/GHXcqPJrTs7S+w4l/hpyDXf+ocZUmeklFKmmRkjeQhzHI9/PIWH5zvA/pNXbO2/bQnmtxXrMtA9eEUeGFSID/6FbkfbNRA4LpvwlOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780066045; c=relaxed/simple; bh=BgxZbj1UJ/e4jG61pj06JaJq/gv0N2NMJ7l2SM3IVwY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YefchbpQLiJfnYNzQAb2GO589WFd3pvZzhVzzeByx5BPn110QSoUul17yvCUiD9Sbzf5SY2nQpxqci4EmRy8elJsYAOoVFY3t1TkWEhGN2/Q1l5RDaSXmpG5wcXiMJKhizzM7UytXYuq8TvIYiAz59vDYyKt9zZg6X7ZEdcc3Hc= 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=C+Zenu6v; arc=none smtp.client-ip=91.218.175.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="C+Zenu6v" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1780066040; 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=mHzkv/H4YOU3Nq71456ELaBW9a2RDL/dDaYQZkWOqO4=; b=C+Zenu6vsHKPQ5lHwv58aRDqZzIODOSiKj08Wp1EMZR2+0lRb+tR57ack78WvORJcLmZeB RMdSDISF6kd8b+DNZ6c0i7RsZlHi2pQ6uWJJc18Nc+cXPGvLib39tJZpY0ZIWVPqGAsuti 5lsDaSeSVBujtSVez3sOYCt90pzDSQw= Date: Fri, 29 May 2026 15:47:17 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 01/13] mm: add softleaf_to_pmd() and convert existing callers To: Dev Jain , Andrew Morton , david@kernel.org, chrisl@kernel.org, kasong@tencent.com, ljs@kernel.org, ziy@nvidia.com Cc: bhe@redhat.com, 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, baolin.wang@linux.alibaba.com, npache@redhat.com, Liam.Howlett@oracle.com, ryan.roberts@arm.com, Vlastimil Babka , lance.yang@linux.dev, linux-kernel@vger.kernel.org, nphamcs@gmail.com, shikemeng@huaweicloud.com, kernel-team@meta.com References: <20260427100553.2754667-1-usama.arif@linux.dev> <20260427100553.2754667-2-usama.arif@linux.dev> <9341f4d1-329e-43a1-9c96-3e42207da803@arm.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Usama Arif In-Reply-To: <9341f4d1-329e-43a1-9c96-3e42207da803@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 29/05/2026 08:20, Dev Jain wrote: > > > On 27/04/26 3:31 pm, 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. >> >> Signed-off-by: Usama Arif >> --- > > Any reason why you have left out the conversion in migrate_device.c? > > It looks like I missed those, or maybe there might be some that were added later. In either case, I will grep through and add any that were remaining when I rebase and send the next revision. Thanks!