Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8040263pxu; Sat, 26 Dec 2020 13:44:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqMCNKcpRgV0WWHVP4K8FkUGmxuP8oTbDkhViOzqFCUPRYlzzADNiZoz6r3o00Q72cY9XF X-Received: by 2002:a17:906:174f:: with SMTP id d15mr29630691eje.52.1609019074871; Sat, 26 Dec 2020 13:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609019074; cv=none; d=google.com; s=arc-20160816; b=RoM533wbZGFKadRQycUi6cBiJ4eihFX+meTwpf/j83LpxIyaRwIIVTEBn820kTfW7l iDVcFNS+E+1Di4O1Lt1pBwckFc3pIsrjfupkx7nwXQmOD3vm0axNumVgh9Pt1PEroq/5 bV1pfCI/96mtwua3XerpHl1DU6sw5ocai6I+uME9GNUoxGMfrflEZXTqUCYezyDM64Q1 sgy/tPtmUoUZ53GNMQyToqyHa7/RVywm1DbQeoyNF+MMLukueViVHSlf0LAbfNXNVdjH l4vyZCHmBQvTAfLDFsvsNeb/AZBUmpSJDpumWlX6auSxy6Xz5e4rPbMHRVySHNw7HaET LNAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4olHbSDjwG6n/OG9RW7BnLDOSD34WqpyWEqi+69B4eE=; b=Y27msAkYYSTyT/rDACkdwnTop+EzsrQZAykvYnkXiz959RGjr9ciQHZc/k32M7VJct j7l+sYjZwcgsORG7LoWEPEvPql6CORE/RfsAyVi/pwwYIRd1ws+bj6mu75rkO+r8wjj/ vUHuIZU+abu1vZLstIR0Z5s0r9TQp42b62r2iv8niWVaZNr7ZK0elyadZQLalxCAXkg3 8QYnijURclDeDeNvSllP1EUpzTKJOYJU122T2W+U8GeKQX4oacoUig70DD8WDAbRHo3t iZJD/FAfAuwVEilcseR0qPa28A7JXaoPkXmN6d6nghTBNHs96bnzldZaB4EfJQ/aAcZ7 Gndg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YCjWq3kW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si16605086eja.453.2020.12.26.13.44.12; Sat, 26 Dec 2020 13:44:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YCjWq3kW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726046AbgLZVnY (ORCPT + 99 others); Sat, 26 Dec 2020 16:43:24 -0500 Received: from casper.infradead.org ([90.155.50.34]:32964 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbgLZVnY (ORCPT ); Sat, 26 Dec 2020 16:43:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4olHbSDjwG6n/OG9RW7BnLDOSD34WqpyWEqi+69B4eE=; b=YCjWq3kWsb8g53CSpAlmT2oaBJ nC3GR3LqUiN58lfPazvooKGIqeZw+N8fT/SjFreJtYzhNVnSPkwxr9kry2bsF/o3CmwIWm8bQkX7E HPXqNppGbGwdHXE4ceNhseY+eTumJa1pasQp7UjZSKq9L7h0sz6yNdUGIiCyreO5zIFaEIpU6gTiU F7YxNhV07CE+NOUky2TE+Bh3MnSQOdMcGM5cYsrLQeI+dDk1uU2iQFPcW8mpioX4hQ+Wgx17rwb+7 1bCLlHh6ZB19a58yalcvBYWRf7CLrHts52+R64fkG2HsCaud6HSHMSy7QjTkKB4PZtZQXk/JNpqZk JoseuZDw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ktHJC-0001eD-Cl; Sat, 26 Dec 2020 21:41:17 +0000 Date: Sat, 26 Dec 2020 21:41:06 +0000 From: Matthew Wilcox To: "Kirill A. Shutemov" Cc: Linus Torvalds , Hugh Dickins , "Kirill A. Shutemov" , Will Deacon , Linux Kernel Mailing List , Linux-MM , Linux ARM , Catalin Marinas , Jan Kara , Minchan Kim , Andrew Morton , Vinayak Menon , Android Kernel Team Subject: Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting Message-ID: <20201226214106.GA5479@casper.infradead.org> References: <20201218110400.yve45r3zsv7qgfa3@box> <20201219124103.w6isern3ywc7xbur@box> <20201222100047.p5zdb4ghagncq2oe@box> <20201225113157.e7hmluffh56fszfc@box> <20201226204335.dikqkrkezqet6oqf@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201226204335.dikqkrkezqet6oqf@box> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 26, 2020 at 11:43:35PM +0300, Kirill A. Shutemov wrote: > +static struct page *next_stable_page(struct page *page, struct vm_fault *vmf, > + struct xa_state *xas, pgoff_t end_pgoff) A "stable page" means one that doesn't currently have an outstanding write (see wait_for_stable_page()). It's really "Next trivially insertable page". I might call it "next_uptodate_page()" and gloss over the other reasons this might fail to return a page.