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 2E45635A3BE for ; Fri, 24 Apr 2026 12:30:44 +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=1777033846; cv=none; b=biIcr0sE1PocdfuJlGp+YjMKXPChn9tnJAk6FGGHVA2xylDCtKVCviazGssheFe9/0JeLUdnmcXFl0G7I2MfKYTAE3Rs7YKY1fdndU+a2NT8wcfctWcktcBgApLsfkdkvwgxXQidqEjNIF0C1iXcnESIvfKOnWhw1xtuU2CpaWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777033846; c=relaxed/simple; bh=DBu/nZvWAiG4+4kt6lEMhjjz5oEbyqzHaHneSIs7Nxw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WWVu9tcph9tmyPp0Z2q8tidze71C9WNMeyH57eKFv1I5FnbbDovpGl59I6JwOBO+UMwXcKFVf1KePyR5iYVsDkOMSYVu+26lD7a4a4y+IebA7Yr+G4UvaIjQ4Nd+w8Oquv3B0EBOYFPk/f4lVIhO7uHdnRD5Ch/yfun1rBCf8Es= 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=ZbPHPhfv; 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="ZbPHPhfv" Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-50fb18c55beso45089041cf.2 for ; Fri, 24 Apr 2026 05:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1777033844; x=1777638644; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=17ilqt7I+TGyWbe020Z7XWSYzkU4sazN3E/IBcELplc=; b=ZbPHPhfvn4LIOWO68YsUGq3klyUOzwdyw/mjDeDqJgNUXWFhXlJ9gTCHHMHY32oFbj pMz1ACByOcW9malia5shvNF13sZDvcDQV2WUkmtS9pBvIZpkM7TcrxGvMozw9w8qrihH K2yEV3164U7UyYjVvB4f5yCR8LQsVNF0szyyKr3v+ukpgvsToZEtcE5EJqa4cLSZpsHG /ebMInanOaREpC7JYE6Y+YAGrPJqR2VjoR3FjS+UfJLlcf+7zvgQt67rmNQqVD6F1BDC 3176iU/0eFlvkT1+K1DCy+s2N9U1sUDvaz8QQTIyp+JBob91YsCPFIyCPKwI79pPtOf4 fgAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777033844; x=1777638644; h=in-reply-to:content-disposition: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; bh=17ilqt7I+TGyWbe020Z7XWSYzkU4sazN3E/IBcELplc=; b=DDSaSs/5GtCrJeKpZJIub2F3YOnNjWslBr8rwdnd8qryHVZsF0cFBqNQ466FLxVtnj vxW4vF2Q2pU3VqDCaregHlwS7TsdTpu9tk+5VYBtfAJ/NOzgnZ2ux/mOf9MG3k+FIbl/ h+ULhIPNew7KirO2z3IiazLQTepatiS7U+duyfqsEHlMT6K9qKjQoh98u3NGxB1iIzye +DNkqbMFSKBuu3ZB7e5+pcaS46vlz9+uBXVkZ24bB7Q1grRQfaYl30xx+L0dy/zrdTMh Kb/exvR+R6KCuIe1tXKC8XNZsW6MWPzPCdiPMy3HFiMuu7VdGufo7u3rLC6n9BVb8pAb 592w== X-Forwarded-Encrypted: i=1; AFNElJ9I5VKor6Fdm+ZDMr1/Q2dhUJuqQIqyVvN/BdcEhTnoA/sp9Ol3DC31kCM4VsNM9ClmIFcfGa8nG/ngGZIc@vger.kernel.org X-Gm-Message-State: AOJu0YwnpV3uDQh85+NVFKXpUXzMNKRnGI6fcOz5fysVZGpX7t+hOJw2 m/2AbcWj1kDCy3LQgQuLH+wQP+7J/b2vOf7For8P3QLH0p34a7WUeMeJMerZTQtNVEc= X-Gm-Gg: AeBDietxueGF6TxhwzlaBRe8xUlw9R9AV48KjwOITQCdFeWmi48GF0SaoKtF0UvN3/P qHsdgnkRhtNpkcObXm3ehrt18yyZUAsqPEY+GK8nsJd51VmHoClcLvJGfStyugYV5QaCSMm/yi4 aCh3lNgbiQHOmrGTQ+oyJPH1jEn5rZjP9aoboYkeljSZphl1trEZK7aAy54gZ0nnxBe1JMzk51u nOaWHWSy/67ScCGGcCspbW/fyte+Qaqk9Jt4YlAl1dP3gEk6CqYDB3qQyk4WVFk34FVAOyxOxnk WtmqEh806TkiIc5JEs4UYR85b+Tde0aRijwhfH2IDDLkkFP/4aLNYwklimydKDRAu11Ewu5uIqS aVcONuPV2ldsubU9KFfsQ/q9sKttNFixIQlJOZaYzOsC97p4BHGunfo0qKATocmu6e/I7x/q39K /YiTyE4dPZdib/KPRWyMaR+znYCXsw9VNxHnG56ZOxIayo9AGi7iDCl9UOUnMsmqk2GJnEcHJQq kXN3lNd8sVOq6EZTQ== X-Received: by 2002:a05:622a:4f89:b0:50d:9cf7:18fc with SMTP id d75a77b69052e-50e5b19c3c0mr269700851cf.11.1777033843835; Fri, 24 Apr 2026 05:30:43 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-173-79-70-94.washdc.fios.verizon.net. [173.79.70.94]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8b02ac81a9dsm184499016d6.21.2026.04.24.05.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2026 05:30:43 -0700 (PDT) Date: Fri, 24 Apr 2026 08:30:40 -0400 From: Gregory Price To: "David Hildenbrand (Arm)" Cc: "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, Andrew Morton , Vlastimil Babka , Brendan Jackman , Michal Hocko , Suren Baghdasaryan , Jason Wang , Andrea Arcangeli , linux-mm@kvack.org, virtualization@lists.linux.dev, Johannes Weiner , Zi Yan , Lorenzo Stoakes , "Liam R. Howlett" , Mike Rapoport , "Matthew Wilcox (Oracle)" , Muchun Song , Oscar Salvador , Baolin Wang , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Ying Huang , Alistair Popple , Hugh Dickins , Christoph Lameter , David Rientjes , Roman Gushchin , Harry Yoo , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH RFC v3 01/19] mm: thread user_addr through page allocator for cache-friendly zeroing Message-ID: References: <9dd9deabd42801f3c344326991d1431c3d8db39d.1776808210.git.mst@redhat.com> <20260422171315-mutt-send-email-mst@kernel.org> <20260423074433-mutt-send-email-mst@kernel.org> <88b0765f-7cfc-4e44-83d2-c01a1755c842@kernel.org> <016cc5e5-044c-46c6-a668-200f90a64d85@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@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: <016cc5e5-044c-46c6-a668-200f90a64d85@kernel.org> On Fri, Apr 24, 2026 at 09:28:36AM +0200, David Hildenbrand (Arm) wrote: > On 4/23/26 16:57, Gregory Price wrote: > > On Thu, Apr 23, 2026 at 04:13:50PM +0200, David Hildenbrand (Arm) wrote: > >> On 4/23/26 15:42, Gregory Price wrote: > >> > >> Maybe we could forward the vma+addr here and call a vma_alloc_froze_folio() if > >> we have a VMA+addr to have a clean interface. > >> > >> But really, that hugetlb code is rather messy. I'd vote for leaving hugetlb > >> alone on a v1, and focusing on non-hugetlb first. > >> > > > > If we're ok increasing the buddy surface this way, then I'd vote for > > only updating the exact interfaces that MST needs to update for his use > > case in a base set of patches, and then have each additional updated > > location (or logical set of locations) updated in follow-ups. > > > > My initial go around with this - the patch was hard to read at best. > > > > But I also think we should also seriously consider not increasing the > > surface of the buddy. > > Exactly, that's why I am saying that vma_alloc_folio() is the only external > interface people should be using with a user address. all other _noprof helpers > are supposed to be internal. > > For hugetlb, we might need another interface for frozen folios later, which is > why I suggest to defer that. > Yeah I follow now - we're of the same mind on all this then. ~Gregory