From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) (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 28E652848AA for ; Sat, 21 Mar 2026 05:40:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774071613; cv=none; b=Hxerr6HwOx2MwXMhp/5dc1tBH8UlvJ4uFUJgPPdqc7qPmtTvDTxHuQ/pxe6gBNnjMwPtx1mfFKCmDFm88GcPEFiaARg8wFfhgOrxW/gjb7mbqWAXrEWhvQMDELjF1krKFubD9y07X7C7+WHel19SLvE6oRq0M5mNT8LxCys63Ng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774071613; c=relaxed/simple; bh=ex3zE+YCaoBgfrzUa4UxVMU5esFDywdJuYGqE5ckyJ0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Apc+yXxTIW1nGJJNsKiHJu3675xrQLCvQQJuJy/Pq2mRDtDkEjIv6ASgJUEG7B5egdZyWnSOBaO3ZbIhaTsKSmSXgnJxc+2vFblQQVGLsrkvVwtltNYJ3PbobeRHqlMDuPTpEMVX2E29WH6js2pqC2s89VwvAYPZT+eBv9QQP5g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=m6OVpnEy; arc=none smtp.client-ip=115.124.30.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="m6OVpnEy" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1774071602; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=nAl2y/5MAUG2YMDa8VDO7zg9tHL26pM8p/zvJD5tRkY=; b=m6OVpnEyuXMTSpG4y+dYr4U+bP3jgf+hBzuQkKTUbMipGFCwO4Efz/Wh0MDP9MCeI4IoBxVddXMmk9GHX99Vg0lJ/0oVZgRKovyEsxAWts8cEWsu/1qgR8PfKonJEs9MGOQ013MJuuZhxH+PNlHimYnEtLqfg1ToP3X3f2S9pMk= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045133197;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0X.O0qYc_1774071599; Received: from 30.42.98.36(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0X.O0qYc_1774071599 cluster:ay36) by smtp.aliyun-inc.com; Sat, 21 Mar 2026 13:40:00 +0800 Message-ID: <55ce039b-ea89-4677-9b07-d556145cc512@linux.alibaba.com> Date: Sat, 21 Mar 2026 13:39:58 +0800 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 v3 07/13] mm/huge_memory: deduplicate zap deposited table call To: "Lorenzo Stoakes (Oracle)" , Andrew Morton Cc: David Hildenbrand , Zi Yan , "Liam R . Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Kiryl Shutsemau , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <71f576a1fbcd27a86322d12caa937bcdacf75407.1774029655.git.ljs@kernel.org> From: Baolin Wang In-Reply-To: <71f576a1fbcd27a86322d12caa937bcdacf75407.1774029655.git.ljs@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/21/26 2:07 AM, Lorenzo Stoakes (Oracle) wrote: > Rather than having separate logic for each case determining whether to zap > the deposited table, simply track this via a boolean. > > We default this to whether the architecture requires it, and update it as > required elsewhere. > > Signed-off-by: Lorenzo Stoakes (Oracle) > --- Thanks. The logic is much clearer now. Reviewed-by: Baolin Wang