Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3934590ybv; Tue, 25 Feb 2020 09:58:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwNQ0K0B/sD2+ZcHSVfVqfVPCzobP5X1DxqZGEx7yk2SnpraXshYx+89wD/rxHqspeUki6i X-Received: by 2002:a9d:69ce:: with SMTP id v14mr46119362oto.248.1582653496440; Tue, 25 Feb 2020 09:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582653496; cv=none; d=google.com; s=arc-20160816; b=zDeLLnfaD2cy4XDSSdllDEJgv1xXWXuAAVJRrMnmsxoUZ0Lt9tGFOhs2Lz29YEi4dn kQ2d0cl7gVKrNzScVNT/OS5zXnNeI4v1CvhxVlpWP2lxwFNuMP4Tlc7HZGtddSWe4kpv P07Uk0Hyj4TiFAFvXEvS0PHX8Bpgf8mJ0JmCdIwlUt4kXeUneelFSorXLEZ106K3EXHq BwvKKr7tHYc3YwjQ5ESodLK37wnCuXOk5UK4pbhVIdB7/oWj6lGAgiwEqior65OPb8Qe df/BD4R0WjeLKCHiWGwu+gM0DqD8iy00gHdmdISfOoMQw47T2u0VRb5/bnky+w1T2EIL lyeg== 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=kvtigPXGzRvNJs/q8hvKnfgrObs8p/1xNnA1u/u1AWw=; b=AblQftZTmukFLxepBC6UebKIDDiI9Y2Uw69coJ9qjOY+PySHCI2+8Ek2gRWSYF4eQg PwSRu8TjwzkQLATy2RPbIa/EjKVgxFEPnLnb52/ZXezrUHRLXih+L2KwOqL/NythK5nr SERwTkWV7tLcBmZee55rRhxr6xA/Wg8WQIW4dG6OO0GN0yjN+HBy3UhlUlAevEe7HPq3 P0ZrfzR6XxzuMpSxBWSOdptgcpJDfmoFELOr8Z/fEytpwLhytSeMQKLvTm8UC8v/iVa2 MuN2hXxK0xCwABOgZW+NyR/2VesP7QxXMzzUAr2TpKAIvif5TMmpzktpR8gTNEzhl6u7 zymA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=g3lDsjzU; 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 s15si7166257oih.252.2020.02.25.09.58.04; Tue, 25 Feb 2020 09:58:16 -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=g3lDsjzU; 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 S1730829AbgBYRsq (ORCPT + 99 others); Tue, 25 Feb 2020 12:48:46 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:43188 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727983AbgBYRsp (ORCPT ); Tue, 25 Feb 2020 12:48:45 -0500 Received: by mail-ed1-f67.google.com with SMTP id dc19so342229edb.10 for ; Tue, 25 Feb 2020 09:48:44 -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=kvtigPXGzRvNJs/q8hvKnfgrObs8p/1xNnA1u/u1AWw=; b=g3lDsjzUlLRHtr6kX3I1c8/QQ+96C/dhxsGBD3pD/oyEQPfnHcnTEQHK2ZAiDLGvxQ XfbzXPYIrD9ycrQssohA0EunqZQZ4DqVbIhbaZi+1UuHwukrLKRapTrEcZiDydSXZ0Tu aGMIRtz4I+rDHgBeWDB7rwq7CU6wK90mKr8BtK0LGKwuMirHsS2Z2T7/EGFO5HqASpXx 375KiUBJO04jNROG7s80x7LlJBsgEdE635+eSfZMhe3pUKgTglfxibQX7WWeBEDC4kV6 CHeV+IRdcksSJG2FIKfJOEyofZhfJqOONpn/GX7RMiXdjHjgvLgKjcVUXQjss3sVNl1p lfdg== 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=kvtigPXGzRvNJs/q8hvKnfgrObs8p/1xNnA1u/u1AWw=; b=P1mNyiIN7sktaiBuN2ZOiN0fjv11eZUlrHiTvWpNfm/cSbH7hTv5au4jDLGuNEp9Os J8Uu6250N7wR6Nyq4tecxmengxB9jX2gqBwPSc3oUead5F+iVBpQOEpbn7FsQGwZqrAb yBc33OlXvoIF2YODHyPG7Cy33W6zXOHVaooseHa2bAthhG6AAxNyxavH3lPUPWZJSWZF E9olgrIbzLObJtgCzar6r6Ycdcw3PfVQAvr61AEwHVp5GCWieGrQxosmU/nFgbJZ+V3i DT1fiJ+4ri6q2wSUrwgVliE/THh0gc0cwtOCYO9Aof/JS82Z0BGQCnYwuu+8UA3JkPGE B+kw== X-Gm-Message-State: APjAAAV1ZMvAGHU/6NNMfJHwVCxrjIM766O/o4GYoq8GDoYrTxijj+z3 JuqXg3nX5zh7NsMptUxWzRPXlejT37PJW4g5wP0xUw== X-Received: by 2002:a17:906:339a:: with SMTP id v26mr366874eja.2.1582652923183; Tue, 25 Feb 2020 09:48:43 -0800 (PST) MIME-Version: 1.0 References: <20200221174248.244748-1-bgeffon@google.com> <20200221174248.244748-3-bgeffon@google.com> In-Reply-To: From: Brian Geffon Date: Tue, 25 Feb 2020 09:48:17 -0800 Message-ID: Subject: Re: [PATCH v7] mremap.2: Add information for MREMAP_DONTUNMAP. To: Vlastimil Babka Cc: Andrew Morton , "Michael S . Tsirkin" , Arnd Bergmann , LKML , linux-mm , Linux API , Andy Lutomirski , Will Deacon , Andrea Arcangeli , Sonny Rao , Minchan Kim , Joel Fernandes , Yu Zhao , Jesse Barnes , Florian Weimer , "Kirill A . Shutemov" , mtk.manpages@gmail.com, linux-man@vger.kernel.org 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 Yes, you're correct that is poorly worded. I'll send an updated manpage closer to the release of this in case anything else changes. Thanks for taking a look. Brian On Tue, Feb 25, 2020 at 5:51 AM Vlastimil Babka wrote: > > On 2/21/20 6:42 PM, Brian Geffon wrote: > > @@ -209,10 +227,20 @@ flag was not specified. > > .RE > > .TP > > .B ENOMEM > > +Not enough memory was available to complete the operation. > > +Possible causes are: > > +.RS > > +.IP * 3 > > The memory area cannot be expanded at the current virtual address, and the > > .B MREMAP_MAYMOVE > > flag is not set in \fIflags\fP. > > Or, there is not enough (virtual) memory available. > > +.IP * > > +.B MREMAP_DONTUNMAP > > +was used without > > +.B MREMAP_FIXED > > +causing a new mapping to be created that would exceed the virtual memory available or it would exceed the maximum number of allowed mappings. > > So this can also result with MREMAP_FIXED, no? > > > +.RE > > .SH CONFORMING TO > > This call is Linux-specific, and should not be used in programs > > intended to be portable. > > >