Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3804274ybl; Mon, 3 Feb 2020 06:53:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyc+eXGaiH/EU9ZhMq7q5VhLa5bHIdNpBT8vtOlJMSSLl8y0IN1ZnXYQXUHxVdgx4KzRa+7 X-Received: by 2002:aca:c507:: with SMTP id v7mr15168784oif.157.1580741584121; Mon, 03 Feb 2020 06:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580741584; cv=none; d=google.com; s=arc-20160816; b=Pp+xyXNZdyDmhBgQPpW1mxkIcw2FNLCyi3b2P545Ii4P6hFCqetj4seOcHUGoxKp9S nY2pPD82Nk+c+EfvmUNCW9M0/1obTkB2GgJmfsETdZHRzg+6yCf18CkF8EzMNirNNSii g4I51uO2XxRQKF+WLqOiOQFnzpRYk9yYuIGhsO4Il+FQ5UxPUBNPIgw5E5IkLU0k8QH4 j6ZbTPnMFxlm/Jlee/AqFcOycnY48C47ONjdfJF/BUp6jmMI5x4RS5WT9iWkWW/rTggq P+dkgs6G4iNELGvw/fTt3rZDbIgE4OpBgYXgn3FTVOzAUugYLOGWq2CUtabx+jc8v3s8 hjtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qX9+IdrLD31YQlGzgAks4lbqLbuGK1+4/0ILCkggpL4=; b=KfDY1jOVtxTlxcDHQmMQS1FnXDQs27yr7N9Vqkdijd3Q4FKmQfJLu99CcWcef5DF7e 1LCyu0woCIlYox6Ap9JLZBPol54RaapVS2OBN4WXXrFiX286RNm6m1N6SJISS85pQhWI Daslnfo0wtFwlBZ0z5IUysborwiJbP4k4WvweezkwXa8ZrxWSSYQ3xztB360IieUIK9g QZF3+dDEO1C5o4lIPafC75j3IGI4YEwEU4vV23WQaU2FaQkO/LSg88SqiJkZ/hMr/uwr D3KOvFfoUEMdOV46o3AZGoNTF0G0spIX62KnYvxOZ/iHl/Z1H4CeYxeG1Nm1XaI66r2U +XCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=ezSYe3ZE; 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 d20si9582645oti.311.2020.02.03.06.52.51; Mon, 03 Feb 2020 06:53: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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=ezSYe3ZE; 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 S1728103AbgBCNJb (ORCPT + 99 others); Mon, 3 Feb 2020 08:09:31 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:34985 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbgBCNJb (ORCPT ); Mon, 3 Feb 2020 08:09:31 -0500 Received: by mail-lf1-f66.google.com with SMTP id z18so9675838lfe.2 for ; Mon, 03 Feb 2020 05:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qX9+IdrLD31YQlGzgAks4lbqLbuGK1+4/0ILCkggpL4=; b=ezSYe3ZEhGKKa6bl/nq2SThBohBllo4QdKKCbOJNjEpL5bZ3OMGJrYPiQDo/g5DnMy /C4WdkFAJ+X6GNj0G7Sfa+VSkus4CUEPWCOmpJ5mjgOWvntD0g+lgLs3+YQxcrHe5yJ1 A41twJP8CuBuCbro1S0ZJk27UeL4yhpFC6UrHrDv6Rf8feqyy7k+4hpH0+FkNQsVOpuQ IWElYn3AaF9E6WYT70uca9rL0T4MxbIeowGjIk0sLseZ1TCZgrvpXhwVVAf2b1ZXs8aL zSBhdupTvbIPfbWZu/xNG5BEhE8NafO7fKlpSJiG8LuWsIZlDEcNRUyOPrb2EhH3fyVg K25Q== 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=qX9+IdrLD31YQlGzgAks4lbqLbuGK1+4/0ILCkggpL4=; b=DyqDPlIqf4vknqmUQv8xOelj9Et7dXBsSMZoji52eEgCVodRuktiRvx9IOp+/IuKim 6cgl5xx8vqqkWYE/Bl0qHtNyoedy84bJqpU9fyYEbAla4nwNrHaavxd3f4rss4wkstlK OQ98UdDIg1WtZOnAeS2elVStGZRkd+i126v+zizSBiOF2bzKWj7/QpPcG2+kNV1Xs+n5 qpOw7+D6NO3Rj0J/nYDDKdQssG8rpCYz7GzkeU/qhJ9AM+cJQ2jJHg5Hi1uw8Q2ZiMrK jbzGrZi85NiCWrDFUzmulaSeCqsBXexALLSDXJtpD5MCjuO4RblPUzWAVZ4kNGxJUn0h e0wQ== X-Gm-Message-State: APjAAAVmGI/+L9zyaIf8etQW4+V+fFIUgN+LULC/4Z2HKzo30Tszvut2 RdpwwNVyDjOKji4e84vsNnuX4A== X-Received: by 2002:a19:740a:: with SMTP id v10mr11746781lfe.65.1580735368851; Mon, 03 Feb 2020 05:09:28 -0800 (PST) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id e5sm3662660lfn.66.2020.02.03.05.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 05:09:27 -0800 (PST) Received: by box.localdomain (Postfix, from userid 1000) id 331DB100DC8; Mon, 3 Feb 2020 16:09:40 +0300 (+03) Date: Mon, 3 Feb 2020 16:09:40 +0300 From: "Kirill A. Shutemov" To: Brian Geffon 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 Subject: Re: [PATCH v2] mm: Add MREMAP_DONTUNMAP to mremap(). Message-ID: <20200203130940.enfvdsbn42hhoaki@box> References: <20200123014627.71720-1-bgeffon@google.com> <20200124190625.257659-1-bgeffon@google.com> <20200126220650.i4lwljpvohpgvsi2@box> <20200129104655.egvpavc2tzozlbqe@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 02, 2020 at 05:17:53AM +0100, Brian Geffon wrote: > 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? Sounds reasonable. MREMAP_DONTUNMAP doesn't really convey that you move pages to the new mapping, but leave empty mapping behind. But I guess there's only so much you can encode into the name. (Patch to the man page should do the rest) -- Kirill A. Shutemov