From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (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 64C39335BBB for ; Thu, 13 Aug 2026 02:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786587974; cv=none; b=cdAesycs5RMZGGPRNJCI6YONWbO2Rho4/U3cGcrafrf2Y5mVWfKM0TkluP/f1NUBVXG/ffjrKc51zket/YrMhL9gIs50/LS6mUtZ6hNzuAXFVWOJZJg2jYQK0lnfkATM9AICywQ7ad+H1SBj+NC+3z1w7KOGRgK02TohkT1cszM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786587974; c=relaxed/simple; bh=71TxTTwtQU0IL4fWyqvp5x+fJcMe1YkgaD0uLI9gfUY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=abvWcg92x8SjuM/y7dGa8IbtH9kwMeJBCMeaHq1mbDq5gNWycPIChQ4aUvVqRX4ylMm5kJ745J62KFzo5WpnQyyhKI9pfJRVby9lZ8sZ6m/lHBpH+whAkMADi4JAL4O1GA0X0nxnyLR0uvxnxt79Qn5mO340mdGY/aI+qLf3EGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=D7m4F/5Y; arc=none smtp.client-ip=209.85.160.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="D7m4F/5Y" Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-51bfe810293so9471451cf.1 for ; Wed, 12 Aug 2026 19:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1786587971; x=1787192771; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=rJyuBNA61ADLE8D7qWrS7xw4VQ7YCE+rGhhYCzYs91I=; b=D7m4F/5YYwWviVk2ViDs9gpv1MpEfsdM4ifm+NZZNobiDM99G4dLwirkpZi2GbWvp2 LwEFxQRL6ySAvvaegSIL86GwX+okUQiBxYCzn6RJjkLutnkgnwwyg3Iv15XQ5AKy3a8S HK4Rfn70xQ2OuQa1AaURfN2m+MGM9tIqoHw6MeLBJlDeITKPlzndGPIGJI6EcMlRfNtN YGo/0mRL75X86e3OhHBo2+pLHq9+l2+0IZORwTXoQLwgvGpkGKBoBPeFWHNy0/adqa05 TVqcDQHkXPpRT4tZ/AmibL893aC2DKu/Nm00e2rNXmvvLeTNQx1wcKBibIQ4BCGzUmNu WGqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786587971; x=1787192771; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rJyuBNA61ADLE8D7qWrS7xw4VQ7YCE+rGhhYCzYs91I=; b=pup1nXPhy8bhW04J2eNLJewACgbBbhVQJpIyzWCUQ6JkNPYkIuGpLhH/h3O7FvIAo1 dPaDifsB5a7S8SAMEkzB2ZIQKvJhncJsluKhTqrp7deiFb9IKXzWbZl6N1wGkcIOPycp BWwHf/4PikSROFYYRW8v9NMdEZeEWbquRQuajI3NqgGBCUJHlcqgWwmxXuMq0YpbDoKx mdJsLuH84DS/AZf3oMZH34sjZFHvQPkguq77ZVUIs8nnbcoEqQ3URIRgVLZyVtLBEPor 7JBH4mlEarOE7h0nZcEmqpdy1ATlArQQUVC3ET8rbNX8p/oCwmikkPhMOd+4auWFLukJ t0bg== X-Forwarded-Encrypted: i=1; AHgh+RqqsSSjnGgbnsnxZpeB8T+q/jpBPfcdvrz0cyOrrWmFb0u5WxHIcRJeO0GgdcMxnIZrzHP/JALfacaOevU=@vger.kernel.org X-Gm-Message-State: AOJu0YzuDXnWUn4nX0IKj6j9WstFctAXzVDdGynfIjhRsO1Ar+d9rFFF WLqJL4UrRvtDtsz3YVBRuBkEG53qwuKRzvgVEGOJb8HX/1m0XrvY3+LKbt20HcfuCq4= X-Gm-Gg: AR+sD12KHUuLeh7ftuc1hNFjLSmBw/gGHL0sP9a8Bxnbgtw5dJ3A4bmrTTuwXcQGGsn oVzV7tnY5Y1UAxwxzDYbHfGgXzUOM1PZeBW0rh3cxDqznI/l74/jHwShVwEIoeTnRQjvxBXOkVH kA3wlt/c0QMf5KgbMiiUzRqwZ/fG90mK/E/yYaon4zBEXXNQE9pnL6IM6C7FCbNidVdsPgfe2BH ZCaK9zSouSY+oRadfMnIPwmfd4lrqcORNEUEcp7Se1FIYJo/2yRu7aECKcDAS0d6adOxN0oT33v WUYN5waqoxWHJahh1jCjV3tmKUGHMVfL1C28dPehQJNY4e9MUGR/cchtZcoYHtJVPEvWU/rycpE bziOoCb3OCdtuSyIJBbjxoovNzh6Xuu0edBKwlQV1G1u8DWwlFVNhuNBHUr4kvJcxO8ss+EEoy1 2A9RdPcmVIQJO9b2KGUkrPxu4M8Ktl3RM9ox5OSUZV/kaFlQ== X-Received: by 2002:ac8:5892:0:b0:528:f72:a986 with SMTP id d75a77b69052e-52d73e973efmr27058371cf.44.1786587971243; Wed, 12 Aug 2026 19:26:11 -0700 (PDT) Received: from fedora ([2601:19e:8500:d3c0::28fe]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-52d7400299esm7355661cf.26.2026.08.12.19.26.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 19:26:10 -0700 (PDT) Date: Wed, 12 Aug 2026 22:26:08 -0400 From: Gregory Price To: SJ Park Cc: "Lorenzo Stoakes (ARM)" , linux-mm@kvack.org, damon@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-team@meta.com, akpm@linux-foundation.org, david@kernel.org, ziy@nvidia.com, baolin.wang@linux.alibaba.com, liam@infradead.org, npache@redhat.com, ryan.roberts@arm.com, dev.jain@arm.com, baohua@kernel.org, lance.yang@linux.dev, usama.arif@linux.dev, vbabka@kernel.org, jannh@google.com, matthew.brost@intel.com, joshua.hahnjy@gmail.com, rakie.kim@sk.com, byungchul@sk.com, ying.huang@linux.alibaba.com, apopple@nvidia.com Subject: Re: [PATCH 1/4] mm/damon: defensively skip zone device folios in damon_get_folio() Message-ID: References: <20260807000938.79851-1-sj@kernel.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20260807000938.79851-1-sj@kernel.org> On Thu, Aug 06, 2026 at 05:09:37PM -0700, SJ Park wrote: > On Thu, 6 Aug 2026 12:05:00 -0500 Gregory Price wrote: > > > On Thu, Aug 06, 2026 at 02:37:59PM +0100, Lorenzo Stoakes (ARM) wrote: > > > On Tue, Jul 28, 2026 at 03:47:11PM -0400, Gregory Price wrote: > > > > All DAMON physical- and virtual-address operations obtain their folios > > > > through damon_get_folio(). That helper already excludes ZONE_DEVICE > > > > memory implicitly via pfn_to_online_page() and folio_test_lru(), but > > > > this is inconsistent with other callers in mm/ which test explicitly. > > > > > > > > Add an explicit folio_is_zone_device() rejection in damon_get_folio() > > > > so the guarantee lives in one place and covers every caller uniformly, > > > > consistent with other mm walkers that reject zone device folios. > > > > > > > > Signed-off-by: Gregory Price (Meta) > > > > > > Thanks, nice to make it explicit! > > > > > > Acked-by: Lorenzo Stoakes (ARM) > > > > > > > SJ Asked me to drop it, > > I didn't asked you to drop this. I asked your thought about revisioning this > for my concern. And you replied [1] you can drop this. > Sorry I didn't mean to imply you pushed for one side or another, just that the feedback you gave about not wanting dead code is reason enough to drop it. I will probably just go ahead and drop it unless Lorenzo thinks the patch is worth keeping. In my next private node iteration, it ends up back in anyway - so we get a two for one without the intermediate patch. ~Gregory