Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8815312imu; Tue, 4 Dec 2018 14:52:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/XzjHwoxAQTyuKQcvWJGn+NqrCosrlgl2Lu+TCPjU4+xuRH6iWpMnYkTP+V9VF5yAXg63y/ X-Received: by 2002:a17:902:848d:: with SMTP id c13mr22038924plo.257.1543963924171; Tue, 04 Dec 2018 14:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543963924; cv=none; d=google.com; s=arc-20160816; b=vfEwPDjLDMtZQiS+2T1JgoCTVO+BgxqcpPSqZ21h/+K6B4Riit+SWlPDlBeKwfeVP5 Km0LHPfkLXZVLIu+V5jw/Ut2IxrpcQN5X6vh/mNM/Oi7dhpucKhDj/tex3eqAzeVZzp6 XKRZJgxp7ZUh6UFgiG9HAJlRREn7x9ttE4bWfDqPbqbQlbToX9K2tHZRP4KmN7xHOxEQ MB2RKwx6c23DhliD/Z+2ie/zVr6e7l9jfVyFJYu0hI6kxqZHTZ/O/cFSLI0ns5Bsr8z8 7taM6EVExGZ58+TrjMcn+sThVda1T2zSHGiLt+5oN8GD+8PFkRNRWwohSQtZgyaJcO8N e5jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=/cSZ+aDJWc4PaQubv8LTWSBg+4crrrGggI1WjpHnjcI=; b=TxLSCHLOre7sa50EPvVHhIveyRFJHwS6w+vDIwA6EGpyn71e8Th8Doppz6BCQb3JMr sfmzM0qgZ11Mb8a0wWB9tALXDvcYJoPGqR0izSGT4Yzh3DnsSN3W6f0qrzOE3PX/UcNp wl3Sq8AyrjuS3vere6rGA7pf8FfdS85b95UWsujWEkDI+737PsiZGr3usJWV5nqa1s8p wu5W/25TKV0Cnxyi/3CJw8tPCA7yoBh/OBhS9nIiI1nl835vnM94FhG/RBNo3Zzv5bpD lUQZsgmnGIrqgCaHm70yJgl7Wvp71iWNSgYulNMwTydBuPb/cU+gktqdjRWubqyKySEJ ht2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si16388673pgu.19.2018.12.04.14.51.49; Tue, 04 Dec 2018 14:52:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726642AbeLDWtq (ORCPT + 99 others); Tue, 4 Dec 2018 17:49:46 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47312 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbeLDWtp (ORCPT ); Tue, 4 Dec 2018 17:49:45 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C04128A5; Tue, 4 Dec 2018 22:49:43 +0000 (UTC) Date: Tue, 4 Dec 2018 14:49:42 -0800 From: Andrew Morton To: Josef Bacik Cc: kernel-team@fb.com, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, tj@kernel.org, david@fromorbit.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, riel@redhat.com, jack@suse.cz Subject: Re: [PATCH 1/4] mm: infrastructure for page fault page caching Message-Id: <20181204144942.63c98a3147071f054d77427d@linux-foundation.org> In-Reply-To: <20181130195812.19536-2-josef@toxicpanda.com> References: <20181130195812.19536-1-josef@toxicpanda.com> <20181130195812.19536-2-josef@toxicpanda.com> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Nov 2018 14:58:09 -0500 Josef Bacik wrote: > We want to be able to cache the result of a previous loop of a page > fault in the case that we use VM_FAULT_RETRY, Please explain here why we want to do that. > so introduce > handle_mm_fault_cacheable that will take a struct vm_fault directly, add > a ->cached_page field to vm_fault, and add helpers to init/cleanup the > struct vm_fault. > > I've converted x86, other arch's can follow suit if they so wish, it's > relatively straightforward. >