Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp105875pxf; Tue, 23 Mar 2021 23:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT5w/OI6PKdapMcRDALdRAU0tSiyZ4ggRTKe9BrhriA6UmknMq6AVTeW+Zrxs81R3XYnoA X-Received: by 2002:a17:907:20f5:: with SMTP id rh21mr2097321ejb.27.1616568659232; Tue, 23 Mar 2021 23:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616568659; cv=none; d=google.com; s=arc-20160816; b=KNyih/Z8FXAgB2R+UyZIVPoKbUi1CnkO+onGmqb7wtAdhELVYmUb0aPQP0N/wNaq4c w8keSrT0+/BD+HO7Fp/2rhtEdBgcviOfRn0DlHGXNGNCGsNYev6uwoGaOytKKIo2fIhe 214MXBevygvcWcvTyb1sMAy/PUG0mHun93GM1dO04ZSCZJOTLdNbEuwTazYi26wRIOmC QSNL/wds7INF8XODiG8Sll5JiI2vJ1bwhRzF4Kcb9/MfitKsvoWcaPxFT6TCnn5Bb+aI +KqCLMF+1DAFce4fZYINg9rxkaZwjJSX3RFg9XzMMlgTXhIYMq8VgmLzxSaQjbLrTvxq XwZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=XqDxfe4GGK69zvJtB/kYAUp+QZJt4kx+lv6J7Sr9tRs=; b=DUzLbNo/Sk44uYMMjZoZwlA+IkSSKfYr4/a+RQB8vjUELev8ks5dckv4WcQ5pORwBr 0lGEnhSS5gGjGyZGYFdaznwh/rqz7eESX3s/mzX49/g64lF8ErwWnmKbd+dH953CsW6p 3zXPigOw5ejoRx11AEfv1LbHjBlP8nxqCg0s8l6okuSyogedwpHRTZykC6qTH+XLwUC8 OyVu+m/rjaYXpoeJMdY98GX2KeFihZeWT9VKI7Gf/yXgrYvyt+j8P2wzGvYVvqJGmVby hJxBJ22AE7wgUg4tNwbXowOhuSAAThn6RdmIivW5x8zHc5fylxeJPr4kcQvWoBmZljB/ jREQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pmX4m2+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t14si1045875ejf.752.2021.03.23.23.50.37; Tue, 23 Mar 2021 23:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pmX4m2+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231829AbhCWS0K (ORCPT + 99 others); Tue, 23 Mar 2021 14:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbhCWSZi (ORCPT ); Tue, 23 Mar 2021 14:25:38 -0400 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8FADC061574 for ; Tue, 23 Mar 2021 11:25:38 -0700 (PDT) Received: by mail-pf1-x449.google.com with SMTP id b21so2692685pfo.0 for ; Tue, 23 Mar 2021 11:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=XqDxfe4GGK69zvJtB/kYAUp+QZJt4kx+lv6J7Sr9tRs=; b=pmX4m2+lbq8wnS3lDGZpOiVbrBKH9GZtNYepLlpUhILycXMuqeBz3snMC85G7kSa3Z 0trYrBGz1Ox/zg4rWqDN8q2a6uuaE/o3qj9T8eNhGxbFlk2H4OH740cB4ZX/7ul7r8+R vN+S0vS8w3q0modfq8gt5cRopIK7WH6SHLg3HufwOlaBEIQ5U499dUYeOTkKTO7UIH9p plGtyf9P+aH9ogIuDl9ic2r4iouA+ocbS+zhhg6rfLoBEJU62JoB+AY/jKGf5FXXQgpc dl+QM4f/C6UPjj7xhpJ8HKMaghCv3XC4+B4xUwLR83CUJZvmciW8GDUZjZ9SI50a7rgp SEYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=XqDxfe4GGK69zvJtB/kYAUp+QZJt4kx+lv6J7Sr9tRs=; b=QDfg71AXdDG/uAZ+epncqXdW+RigiTNIyhgpRAsNFEEABcV9oWUCot0aYsuBVE/3Ut iNtvC3m0l9ymaZ3Szn69rTuy/PQq6YHznDSRREg2zDRQCzbwN9RjX76cqhPJ4HX4yJbh qvwUGzyvV2rMFYZJYyKZM8s3L6CsCkQp7JcaDbC40wCSCuS9R4A/n7avQwxl0RxRD7sl 6KbtnAbTP/xotpFQ8cb0moT0gTKYKpYH8VDzrraTwdugxf+4H0HRlf1LnpYjpgQkylnM KSZDGgi0j+GAB2d9l1r8hn4f9QUDb6I2lCTkJZHd/Tu2jQ/8vXQIvKNjUF6NhmJSkvk3 kPJw== X-Gm-Message-State: AOAM531VEE/Xu1f08HFeF58UyFkl11SGMOieMH2nIOG+X3SeJD2eLQIx gUUFJVUARKT4LaQZGzPUb0IJrNKzD0ZW X-Received: from bg.sfo.corp.google.com ([2620:15c:8:10:b047:e98d:2134:b4dd]) (user=bgeffon job=sendgmr) by 2002:aa7:9493:0:b029:1f8:a493:b747 with SMTP id z19-20020aa794930000b02901f8a493b747mr5851808pfk.41.1616523938296; Tue, 23 Mar 2021 11:25:38 -0700 (PDT) Date: Tue, 23 Mar 2021 11:25:20 -0700 In-Reply-To: <20210323182520.2712101-1-bgeffon@google.com> Message-Id: <20210323182520.2712101-4-bgeffon@google.com> Mime-Version: 1.0 References: <20210303175235.3308220-1-bgeffon@google.com> <20210323182520.2712101-1-bgeffon@google.com> X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog Subject: [PATCH] mremap.2: MREMAP_DONTUNMAP to reflect to supported mappings From: Brian Geffon To: Andrew Morton Cc: Axel Rasmussen , Lokesh Gidra , Mike Rapoport , Peter Xu , Hugh Dickins , "Michael S . Tsirkin" , Brian Geffon , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andy Lutomirski , Vlastimil Babka , Andrea Arcangeli , Sonny Rao , Minchan Kim , "Kirill A . Shutemov" , Dmitry Safonov , Michael Kerrisk , Alejandro Colomar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mremap(2) now supports MREMAP_DONTUNMAP with mapping types other than private anonymous. Signed-off-by: Brian Geffon --- man2/mremap.2 | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/man2/mremap.2 b/man2/mremap.2 index 3ed0c0c0a..72acbc111 100644 --- a/man2/mremap.2 +++ b/man2/mremap.2 @@ -118,16 +118,6 @@ This flag, which must be used in conjunction with remaps a mapping to a new address but does not unmap the mapping at .IR old_address . .IP -The -.B MREMAP_DONTUNMAP -flag can be used only with private anonymous mappings -(see the description of -.BR MAP_PRIVATE -and -.BR MAP_ANONYMOUS -in -.BR mmap (2)). -.IP After completion, any access to the range specified by .IR old_address @@ -227,7 +217,8 @@ was specified, but one or more pages in the range specified by .IR old_address and .IR old_size -were not private anonymous; +were part of a special mapping or the mapping is one that +does not support merging or expanding; .IP * .B MREMAP_DONTUNMAP was specified and -- 2.31.0.rc2.261.g7f71774620-goog