From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-144.mta0.migadu.com [91.218.175.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E6EB348898 for ; Wed, 19 Aug 2026 13:04:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.144 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787144693; cv=none; b=Z2Zu7K9bvD41sm9p+v/T922C+qGl+wRMODgzGYZWF5S/IcrE3Q7EbOedSUiDKEWJM+yjK5y0BP9pfXXu9dcy54yx9T1DiPXlXt7AGFPCyDnXHxSoFzjrfMwHhZNA+vUMTT1oYv99B8VcUTyMKyL7L1gURgrr3MeUgXdnghJP3tA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787144693; c=relaxed/simple; bh=fZALeriPdLaxSaHA9bIAzL1g5VyWTFEs3PqqE7YojUA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ovkLQs6wkeQNWoK4OpZ2gyJcklDEckZFQ64PWCtGcs3XOyP4Ekm2IBXucxtncBz3SSZX6BbSqeiBtx/bbVmhpKRjctRW2ZdkltlUTAF4+x0LhKl7qjYwe4tApfCdfg5CL3b876PHEGhAaq13XyoNcvEuDYHw/aD3LzBbDL/qNBU= 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=LB5H1Ada; arc=none smtp.client-ip=91.218.175.144 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="LB5H1Ada" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=fZALeriPdLaxSaHA9bIAzL1g5VyWTFEs3PqqE7YojUA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787144688; v=1; x=1787749488; b=LB5H1AdaQr3O0wMwSORDFgJi5+5iUK3lb4a/VahJqWseTDpLB8dWhnyXLhkmGothMoQEoB5p k09xdhGdvVpPYJDim4m2fydTPa8povGtCsDMfh+twwndL+19AJQygQ4NNdihrQx8/QPi4Zt7SVb 1xslPCVOHF6kEZqZjyNaPBCU= X-Envelope-To: linux-kernel@vger.kernel.org Received: from [IPV6:2a03:83e0:1126:4:9d:a05e:5bd8:c200] (2620:10d:c092:500::4:a428) by smtp.migadu.com with ESMTPS id cac369ceb3f75518; Wed, 19 Aug 2026 13:04:48 +0000 X-Migadu-Flow: FLOW_OUT Message-ID: <282ef982-3e48-4283-9155-73a33fc1c4e8@linux.dev> Date: Wed, 19 Aug 2026 14:04:41 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 00/12] mm: PMD-level swap entries for anonymous THPs To: Andrew Morton , david@kernel.org, chrisl@kernel.org, kasong@tencent.com, ljs@kernel.org, ziy@nvidia.com, linux-mm@kvack.org Cc: ying.huang@linux.alibaba.com, Baoquan He , 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, Nico Pache , "Liam R. Howlett" , ryan.roberts@arm.com, Vlastimil Babka , lance.yang@linux.dev, linux-kernel@vger.kernel.org, nphamcs@gmail.com, shikemeng@huaweicloud.com, yosry@kernel.org, kernel-team@meta.com References: <20260818131202.494754-1-usama.arif@linux.dev> Content-Language: en-US From: Usama Arif In-Reply-To: <20260818131202.494754-1-usama.arif@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18/08/2026 14:09, Usama Arif wrote: > When reclaim swaps out a PMD-mapped anonymous THP today, the PMD is > split into HPAGE_PMD_NR PTE-level swap entries via TTU_SPLIT_HUGE_PMD > before unmap. This series introduces a PMD-level swap entry so the > huge mapping can survive the swap round-trip and do_huge_pmd_swap_page() > can restore the PMD mapping directly on swap-in, without waiting for > khugepaged to collapse the range later. > Addressing sashiko feedback from [1] here as its a common reply for most of it. The PMD swap entry is installed in patch 11, until that time, the path in patches 1-10 is not taken, so the feedback from sashiko is mostly wrong as the feedback in patches 1-10 is that PMD swap entry is not handled in another path, but it is in a later patch from where the feedback is being given. If patches 1-10 were squashed into a single patch, I imagine sashiko will be happy :) [1] https://sashiko.dev/#/patchset/20260818131202.494754-1-usama.arif%40linux.dev