Received: by 10.213.65.68 with SMTP id h4csp2874303imn; Mon, 2 Apr 2018 16:02:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+c5A3lV3gV9PzghneEwBiiauxK+iHWNAou1Oxp7v7DUzJa122c3BQwYLrclDi25OqB6Sig X-Received: by 2002:a17:902:2862:: with SMTP id e89-v6mr11531030plb.348.1522710136035; Mon, 02 Apr 2018 16:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522710135; cv=none; d=google.com; s=arc-20160816; b=j2QyE6MWJiMKrrPegNZjeArTT8E7VwYuCRLG/6KjaXEn1hWzvQTlDsTO0OXOYdhVIo p6hUDRtv/kjqJm6LTJP2dATETzWLUm6BU3/EfdepEwB/0rGHudutaAA/m/c/nWVgOc/D HyDI6KzpPY2Y88FA8t3ikbacvU4fMTwxblBCintHf/1pFt8mbpQ4NK73Zt4OtAZjyACZ mrECjQgf1u9HbrEGtuilY8XbcXEJ6nnid/8mvUvmmHn3MQsO2CfeHkt6dXgZT704ERRf 48ZCbnR9YSUNSOZmoQ8fH44zcPEeyoMeWOIIPgiKVmbupTLT32C3C25cLTQs/0qNdQDF rYJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=clGM01MDK+XGqQ5b00yrmcg4dNC0uGBUXwcHjxigs7s=; b=ERr0Qm+rCE+N1lErZk3WzMjLFr+HzU7gfNC4+4Nw3AIyxReVl9t28H6N1IJ5fkxE3W DeJJltSMS+EDRJHw4TKzTYvx5N0JNbYN765A8l8vEPFWiRDLyj3fIRh79pK/6+5FJCcM GHo6ZAP6Op3WI33D/iIG8HKVMtlp2K8x0MybrbS1wrwNb/RNHF5k3NCsTy1fSQYWc1px SIKnnGCN/hPe3Ad5DTWpAvMa7Q+b/YRNpw1HQRMYo/ez3vquv2uYb7243I5aMf0smeW6 i64p55Ama8/xZOEAPepC9k6jEz1mSvqT19fP6wzGNbw4p2BEmVyQI2FVv4ypTxK8O7uX Pb3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=b0Ihm5X0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o17si888374pge.765.2018.04.02.16.02.01; Mon, 02 Apr 2018 16:02:15 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=b0Ihm5X0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754698AbeDBXAU (ORCPT + 99 others); Mon, 2 Apr 2018 19:00:20 -0400 Received: from mail-pl0-f46.google.com ([209.85.160.46]:34268 "EHLO mail-pl0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754558AbeDBXAS (ORCPT ); Mon, 2 Apr 2018 19:00:18 -0400 Received: by mail-pl0-f46.google.com with SMTP id u11-v6so6173171plq.1 for ; Mon, 02 Apr 2018 16:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=clGM01MDK+XGqQ5b00yrmcg4dNC0uGBUXwcHjxigs7s=; b=b0Ihm5X02oQLRJM8hzJS9IwdfnscSGy2NY5p84iVo0VC/Z7Xml6jl7jsKpl2Mzg9eh nPzCsjquft5LmTxE7vDp0J+U3r4X669ElS4Aupp2TNEEydCOFVvfG72H+NsgSBk8B6S1 ozLHWT06k4e4EtWTExvjofN0XQJTFFYE77GG/d9sDjbHfdrwDcALSK742R0Q2TFOI7Jc bzejMPtK4eNNdlnRvUEHyOdXCDsLTflVlQgMAy0hiB+ZmgecMVTDm85VruuZuAOnnp1+ 8f8fdezejy7yBwglb/nlE2ypxiJIOdjvregQuVg5b56iuEishF4Gj8HsgdfRTY4JjOfN jJWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=clGM01MDK+XGqQ5b00yrmcg4dNC0uGBUXwcHjxigs7s=; b=Lor4cMKRicb3pRp9R2nQ9pMyu0F1bNw0UCtHrMM5OT3pB0/0rjcw6cr5M8DqmyzkHm Vwem/Pk4k1C35Ngfcwp+U+JqGWAmEsyoxIkL4XBY0USc/5gsJUnzDbwkdOUfrcF6Ibta okeQl5vBgs3F6/Qv28b5tEmllDGMwaz2hh/2jC9WN+TRrLPbS1CS/GPv4SpeNO5cUGOV G5UavmYq8zjqepRVisXBC/9VqJeUGTf4xCVNqQXNrInIYe+FhqpY7DxQvtjwzEOe7Mww sp00qh8qRtgCl+fV3CxYA3trlG0DOq0o1fjXUeWLjeYkrcR75ktDv2OPKMUr3VyKpyW7 XyAA== X-Gm-Message-State: AElRT7Fft8NfWWHkXAFVr2mFfN2vI923WWVQ4VZauNBAKdxWdB8pYS4P yYWZD9XUwjKaz0OrTYccbxBHgA== X-Received: by 2002:a17:902:28e3:: with SMTP id f90-v6mr11601660plb.250.1522710017268; Mon, 02 Apr 2018 16:00:17 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id g8sm2491921pfc.106.2018.04.02.16.00.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 16:00:16 -0700 (PDT) Date: Mon, 2 Apr 2018 16:00:15 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Laurent Dufour cc: paulmck@linux.vnet.ibm.com, peterz@infradead.org, akpm@linux-foundation.org, kirill@shutemov.name, ak@linux.intel.com, mhocko@kernel.org, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, sergey.senozhatsky.work@gmail.com, Daniel Jordan , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v9 12/24] mm/migrate: Pass vm_fault pointer to migrate_misplaced_page() In-Reply-To: <1520963994-28477-13-git-send-email-ldufour@linux.vnet.ibm.com> Message-ID: References: <1520963994-28477-1-git-send-email-ldufour@linux.vnet.ibm.com> <1520963994-28477-13-git-send-email-ldufour@linux.vnet.ibm.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Mar 2018, Laurent Dufour wrote: > migrate_misplaced_page() is only called during the page fault handling so > it's better to pass the pointer to the struct vm_fault instead of the vma. > > This way during the speculative page fault path the saved vma->vm_flags > could be used. > > Signed-off-by: Laurent Dufour Acked-by: David Rientjes