From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (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 8585E42E8E7 for ; Tue, 7 Jul 2026 16:26:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783441567; cv=none; b=RLBZKMQOCdpNe3iR2k7QWOzt1LEZ8u3cax/4c2PruP6KP+uxITc0R1FFaCwbZvU93KvvJvM4l8mQ6AxGSIkbCS+RMPKImvXl4sFfYfSiz73KK7Ru6S6jMVPFnyupLrg3NrItbfZA8ymVpKVM/JiD7C3MH7mNW76Edal5Y7513L4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783441567; c=relaxed/simple; bh=lrYSArpP0iVuUgDVG3d1222jafWM2daRLlBprnwN79M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XJL6dXjBt9TToBUld3SLwL2v7wXP4WeQjuK303F649YmZeKLdLWxv2SfEFWdb1eyEVHWlKVixtMdB0tG1KOmnKp73b1J64IcqfyhWakRgIuFHsMCf+So1OPJAc6VS8GDTQfuYHtSoWln0wGzsN2MbEuObY2fpKyp37x3SBixOgI= 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=VSYseg+e; arc=none smtp.client-ip=209.85.219.42 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="VSYseg+e" Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-8eeb4508f29so34316056d6.0 for ; Tue, 07 Jul 2026 09:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1783441564; x=1784046364; 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=Abd7yWEQE6Vuyzvr8uj66ic6dsI9yDvEtRp+r0f0v0Y=; b=VSYseg+exNpfuLKbFDvFmj+FXgMynIyaIJLTmqKE5xqjn4RWfOb4YgC9WUBqaHGIou r0dE4B3Y0O2oC3ByyeA1No08p9fHPItCEXg7wn4B2ke+O/DTBtdwANvowyfAejANR7yG L/jMUvsK1S0TdEcwUbGCsUiYh0RCVKsFCrEVatCGj6+cv+GvddNIuRa2S05KYdqn1/fb Gq8/W4c5zgHkm5jy7FH6iwnVjsl7/l4bphOIL12amaPZEhRct0ugJV7Tm/CESAC+TkJo Tra++G1pnsToJV+fPMk8aqsSKixNZz1TiK86GTer9SCvTKiK3hii9NDa6lTPfNFKPCJq nMxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783441564; x=1784046364; 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=Abd7yWEQE6Vuyzvr8uj66ic6dsI9yDvEtRp+r0f0v0Y=; b=XSWMdMap88PQqB20iNAwr79XpaIDvzvhylCexj6YMTbdN1dPz8DWimEZIruM5hNNGQ pa/I/Ca4xSassENYrTpwDA5EggDP37JubYobrBCbjN94Ss+6qawn5T17qDc9/SQv1YVL Aey6pMWZfVHYUx5Y10I7RxwjPg1PZJlb1sjz71Hkwv693RbhGs90d5pktZJIdsI7ob2w k8NvS5TbbejgZojAR7WrzIAdkw3Xf1vM6BnNN6fGLjWX805M5goV0zBvHaxxRpIL3cPw uPh7VSWvuwVPJrYwJuAZFLPjnJ6ueRz08XS0XR7PFchzwrBqa1uO6unw3SnFf56PW8vo aB1A== X-Forwarded-Encrypted: i=1; AHgh+Ro+y81uKlKs6TDVZlIUnNz3UCyJcD8leCr0VdFrXU3BV8qAvSkM0jzovhiXK2Od0wIdi+cUIId4S9/2CjI=@vger.kernel.org X-Gm-Message-State: AOJu0Yze0Lj5Nr8X8ep9PyU/+S0UBXKLipaU65MT4+q36T+p46BBM5VR aUxk2at1KIXMcYtVa/YoLEuGfkTUZ0+kvWFyff7/qwf90kkqS/Me4yhMKnc7Xbs/yQo= X-Gm-Gg: AfdE7cldHUPef1F4sqyZa+LRKpgQ6UIptc831Z1Yur2lpZMzuesqfuFJH9Cs8sRJB3Y yhgrgmtRswhmXUMdfVHJLS3U+FWva2wc38A5a70GAwJhxfQHo2BLJMMA4WLYJk+j5hRnH7qcQZe vnYFqWysBxSHd3cpUUhXsCgwUGuCpRITjWRfrOLVroih0TUYnxzPU0D7FTnOf+Lw70kigwF7Qiw yuZ1+HqrvphhLeCFJOZZSV0xyGonn9dCBya4RU9x/3NS3qBtUePlCMMTBl8Wzzq+p1wGNzYP1CK Rh3JcPrjwVRn+UTeKDq+Ru9y11QRzesFQEItEOlZ0MZGLGfovK6qmMB/9mqshiIex81ZvgnWXGB 14ErayjRxzNY3Igyn4L6/mQt6LXxfvwsuhqb5RidX8UxB6Pnwm1MzbuaRyTCiuSxFbCjsmIecSk 26wVvKv2cN3zOVJYkQ6seRJozbvkT+/m7gDlt3NQANBBi03prJE83L5UNfAO7Wki8759C9rYMFY d0gXw4= X-Received: by 2002:a05:6214:6011:b0:8fd:6de3:bbaa with SMTP id 6a1803df08f44-8fd6de3be6emr28372996d6.64.1783441563961; Tue, 07 Jul 2026 09:26:03 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-173-79-60-52.washdc.fios.verizon.net. [173.79.60.52]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8f46f306123sm181382626d6.20.2026.07.07.09.26.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 09:26:03 -0700 (PDT) Date: Tue, 7 Jul 2026 12:25:58 -0400 From: Gregory Price To: Lorenzo Stoakes Cc: Andrew Morton , Russell King , Dinh Nguyen , Simon Schuster , "James E . J . Bottomley" , Helge Deller , Jarkko Sakkinen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Ian Abbott , H Hartley Sweeten , Lucas Stach , David Airlie , Simona Vetter , Patrik Jakobsson , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Clark , Dmitry Baryshkov , Tomi Valkeinen , Thierry Reding , Mikko Perttunen , Jonathan Hunter , Christian Koenig , Huang Rui , Ankit Agrawal , Alex Williamson , Alexander Viro , Christian Brauner , Dan Williams , Muchun Song , Oscar Salvador , David Hildenbrand , Suren Baghdasaryan , "Liam R . Howlett" , Matthew Wilcox , Marek Szyprowski , Peter Zijlstra , Arnaldo Carvalho de Melo , Namhyung Kim , Masami Hiramatsu , Oleg Nesterov , Steven Rostedt , SeongJae Park , Miaohe Lin , Hugh Dickins , Mike Rapoport , Kees Cook , Paolo Bonzini , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-parisc@vger.kernel.org, linux-sgx@vger.kernel.org, etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-tegra@vger.kernel.org, kvm@vger.kernel.org, linux-fsdevel@vger.kernel.org, nvdimm@lists.linux.dev, linux-mm@kvack.org, iommu@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-trace-kernel@vger.kernel.org, kasan-dev@googlegroups.com, damon@lists.linux.dev, Pedro Falcato , Rik van Riel , Harry Yoo , Jann Horn Subject: Re: [PATCH 11/30] mm/vma: introduce and use vmg_pages(), vmg_[start, end]_pgoff() Message-ID: References: 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: On Mon, Jun 29, 2026 at 01:23:22PM +0100, Lorenzo Stoakes wrote: > In the VMA logic we often need to determine the number of pages in the > specified merge range, as well as the start and end page offsets of that > range. > > Introduce and use helpers for these purposes. > > No functional change intended. > > Signed-off-by: Lorenzo Stoakes Reviewed-by: Gregory Price