Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp437266ybl; Tue, 7 Jan 2020 23:14:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwXKkBuukljMNPl0BxzlBjPmh8uEDLESRgGzL2b0pCKTyxeL0IEyQMMLMMy34FctIHD4GF7 X-Received: by 2002:a05:6808:9b4:: with SMTP id e20mr1864597oig.37.1578467689656; Tue, 07 Jan 2020 23:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578467689; cv=none; d=google.com; s=arc-20160816; b=cWu1a/PQMwwjSvyBQqQ420ZlbqfbDTT+a2lEGldctnEBSEq71PkcuWc6vnrK8MO/Nc EmuccdLls0LXJGnAbeK3pGXwwMNiMw1SqtnsAzKJ+m4B89GGXFZUoanN/ZFiI1GKyTcv tH5iS/ecW7p+5lfBWsGM4e2qDOjHew4k4T7zoVsjj9P7MjyCAPfBLOU6uFqxIDPVMkaN 34jHiy9dlYrL/7mpb0GV+ilWWui+TT3IDXdlbLDs3Io13YlPNZ6qx404p3TuVs4bLA1s uluVkot/4+VmGuSV/Y5QEuqco6iB9f27tCs6B+WLJoZgF39cqdJjnq2247iZTrj+6Qj1 jV+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pm5iM0vbIX76HYWDHFR+Oa3FoSLthUKdJXm54px8nH4=; b=zhS7yUQQh6rG208lGIxjdZ7+uwJOeBufMFz27YjSXHinr1b/MCyZVJ5zi6m1ddVFBA b1KqveIdRyRnGcQDb/z8IcsH1h/7bMFsopmx9xQ+PTljWY2hDBHKW5TrpXhOOCQ85IFr ZlQl0QitKZoAXxoXsPDO88X6e3rtA+DQVTh51I2YM2ghpfkL8EKHQpLSYrOmMhJEYbpj MGDBjJX9rDMvrLaQs5H9WBG42B+apKs7Jcfkn8iFy0Fi1esuVewp0d7Z1eIZbY0ug+I6 dLsKTyfEPZrcBWFeCHuZ8EX7jZbgdN3oTVFYJ3mPigYVmV4WEH6ENo02XJbpcmdUr2Ce 8MFQ== 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 b1si1324739otl.302.2020.01.07.23.14.37; Tue, 07 Jan 2020 23:14:49 -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 S1726492AbgAHHMr (ORCPT + 99 others); Wed, 8 Jan 2020 02:12:47 -0500 Received: from verein.lst.de ([213.95.11.211]:47823 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbgAHHMr (ORCPT ); Wed, 8 Jan 2020 02:12:47 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 4E17B68BFE; Wed, 8 Jan 2020 08:12:45 +0100 (CET) Date: Wed, 8 Jan 2020 08:12:45 +0100 From: Christoph Hellwig To: Ralph Campbell Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jerome Glisse , John Hubbard , Christoph Hellwig , Jason Gunthorpe , Bharata B Rao , Michal Hocko , Andrew Morton Subject: Re: [PATCH 3/3] mm/migrate: add stable check in migrate_vma_insert_page() Message-ID: <20200108071245.GC3068@lst.de> References: <20200107211208.24595-1-rcampbell@nvidia.com> <20200107211208.24595-4-rcampbell@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200107211208.24595-4-rcampbell@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2020 at 01:12:08PM -0800, Ralph Campbell wrote: > migrate_vma_insert_page() closely follows the code in: > __handle_mm_fault() > handle_pte_fault() > do_anonymous_page() I wonder if we could share more code there? Otherwise this looks good: Reviewed-by: Christoph Hellwig