Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2367500ybl; Sat, 1 Feb 2020 20:21:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwbHZJnYW4PXUxAjNVJA/CKwTi6edwTc78r9zD9f1FivcA5rVIcexsMqt4nMlS9Nbqzjrtb X-Received: by 2002:a05:6830:1e72:: with SMTP id m18mr12435490otr.226.1580617295378; Sat, 01 Feb 2020 20:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580617295; cv=none; d=google.com; s=arc-20160816; b=w0aO/pOnYBkuQi16FGXFX2MZEP0vfy0hiHs/NYC8xygLTNDopdHS4lKrUqYLt2XdCu cxirSyfzTROSQ/Euz+Di0SnSeW71hWjVIaC75xBrg0cPqYxMDQa2alKX0ubid+YnYGBg LmcW2cOC84Mg7kMESgGNN4k+HplLO59S8m+SfcV3xsVn4KhtOqM04aYq8kNJPUzAovyz qtP21vkopybKSqkxpeqRpMzIzPBOLSU2wz4DtuHYFspgnL2yQK/C94xiE2gM7LXwbfwo gDFg34OZdatC6K7oPUODm838YDa8RlDgQHaMYXgP+FnpOi3/tpPzbBjCuvyHPDy75WYg WlKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UuEb10QAUcFcGwJKCFeGhLUYYwMKG3vOlYqSejkAJjc=; b=oqJQ787aT6fiSWd5VHwevc384vOl5CtrzAvsQ602h6gf1ua2wVFcjIW7+TWSn/Ov4N s/gLl7Y3z/7zbEQTIuhWOMxh+wNxFWGDEAz2eXOfY0v0bL1yfJeUbHmhkoMOIM3r495W D8sXd4CZYg6BikbdkzzlvK8pPFdGvczxQIFczBA0cGWLBVspE2hHRj3ItfV3BzS/9x7m vTJNWxcPrcMCXPTiXYcWGPH6vQYT3uxl8E/pcCJYWdiwm74DQk2wRTFOXsv44vwaqoa4 jXmHMQk0G/J6/TBYaLbB7nSBhIE0tqkWYl39rkGlQDTSz6ipgmDR0rcYOcD78oVjk7sl B7BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BZ9+x4AU; 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 m16si8263896otj.7.2020.02.01.20.20.55; Sat, 01 Feb 2020 20:21:35 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=BZ9+x4AU; 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 S1726877AbgBBESY (ORCPT + 99 others); Sat, 1 Feb 2020 23:18:24 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:40664 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726794AbgBBESY (ORCPT ); Sat, 1 Feb 2020 23:18:24 -0500 Received: by mail-ed1-f65.google.com with SMTP id p3so12400705edx.7 for ; Sat, 01 Feb 2020 20:18:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UuEb10QAUcFcGwJKCFeGhLUYYwMKG3vOlYqSejkAJjc=; b=BZ9+x4AUIFJLiX/N1VBjRD80E1JAY6p+Ow1VTwbX6FGZWiklyuGDkrP0qeMciPsMUe 8nTSaKr4Ho6/S7dW2SpMb/OZSIj7QcOWDEwMYH9REu0dT4ejNyJIPZbDM/NhReSGj4pW 0F1tPaYk4DNXr3WnbLQ58PPhFJERk1lmkG/IK6NW0wEAsqpyEd1UQ7Ty1JL1Akh47bmN tF+Efol3wF29/cOHJt8lRHPpntXfHAZbLjNTGpINUaeSuWaHL5PYTdxO5Kg4v+zE+uWo aQd7vruF8DxQ/LOBHcs/1WTiM3K89c7fQpOzkqbwjA03mvKLkr+BDjefK9rnfrRqG2H5 UqtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UuEb10QAUcFcGwJKCFeGhLUYYwMKG3vOlYqSejkAJjc=; b=DvxqXrKeIs/bUFetRM8w5kbdxTppFrawXLpBmcKu28JJwhU09GQ1yN99CMNDINgCf3 Q/MqpCaaK22HbSSMaALxv134REpvFnn9szN6RzLNYWM/tF+jAnfXumJtAAa1UFfu5HcE gIDuLE+F46P/T1sGtQiSJXzah1hOj7E5t51bB1co9ZTrLheGgGflLdL5tPd82gFaWZaA Kby7mp/4XaAI+Qe6P+678Veu0SVwgKPG7dWod75NmrZ3BoakPsSRu1B+ydAJcdIDH4Gk SWa3EEzuDS0Tnqw8XZtrmFkd0+S/KDzfHTsqY/f1Ejw3CKZOoGnT7RT3im+cFmjVfsEP 9y/Q== X-Gm-Message-State: APjAAAWgZLQyaeQMSXgvUMxBTEMu5TKlKj3OAogeofdwIUgAaFgEIK7E RKVangp1PCl5Kfal7De53LDq23/jVl0GPiwUx6IkAQ== X-Received: by 2002:a17:906:82d6:: with SMTP id a22mr15774735ejy.242.1580617100799; Sat, 01 Feb 2020 20:18:20 -0800 (PST) MIME-Version: 1.0 References: <20200123014627.71720-1-bgeffon@google.com> <20200124190625.257659-1-bgeffon@google.com> <20200126220650.i4lwljpvohpgvsi2@box> <20200129104655.egvpavc2tzozlbqe@box> In-Reply-To: <20200129104655.egvpavc2tzozlbqe@box> From: Brian Geffon Date: Sun, 2 Feb 2020 05:17:53 +0100 Message-ID: Subject: Re: [PATCH v2] mm: Add MREMAP_DONTUNMAP to mremap(). To: "Kirill A. Shutemov" Cc: Andrew Morton , "Michael S . Tsirkin" , Arnd Bergmann , LKML , linux-mm , linux-api@vger.kernel.org, Andy Lutomirski , Andrea Arcangeli , Sonny Rao , Minchan Kim , Joel Fernandes , Yu Zhao , Jesse Barnes Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 29, 2020 at 11:46 AM Kirill A. Shutemov wrote: > Any better options for the flag name? (I have none) The other option is that it's broken up into two new flags the first MREMAP_MUSTMOVE which can be used regardless of whether or not you're leaving the original mapping mapped. This would do exactly what it describes: move the mapping to a new address with or without MREMAP_FIXED, this keeps consistency with MAYMOVE. The second flag would be the new MREMAP_DONTUNMAP flag which requires MREMAP_MUSTMOVE, again with or without MREMAP_FIXED. What are your thoughts on this?