From patchwork Mon Nov 11 06:10:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Henrie X-Patchwork-Id: 13870261 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 666CED12D71 for ; Mon, 11 Nov 2024 06:10:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D15AD6B0085; Mon, 11 Nov 2024 01:10:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C9E206B0088; Mon, 11 Nov 2024 01:10:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B17AE6B0089; Mon, 11 Nov 2024 01:10:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 8EDB96B0085 for ; Mon, 11 Nov 2024 01:10:49 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 18B061216B9 for ; Mon, 11 Nov 2024 06:10:49 +0000 (UTC) X-FDA: 82772789064.06.6EC3B4B Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by imf29.hostedemail.com (Postfix) with ESMTP id E869512001D for ; Mon, 11 Nov 2024 06:09:52 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=I59+r9BA; spf=pass (imf29.hostedemail.com: domain of alexhenrie24@gmail.com designates 209.85.210.182 as permitted sender) smtp.mailfrom=alexhenrie24@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731305393; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=0mQa7c90nuXP2OJY0olSmiXWHGaNL6/BylJprGzUH7M=; b=u9YSr6ImoFaEcKgONYTD45WaqIYdslGIGtW/6AQmLw5V8mNniWnpnTV4OVfYvlEl3bO1Uc 3s5VxVFs7mDkzc3vK2/laKZOJ2FSHY1ma9ydZ620RUO4jsh+is6XwUlv4R5DpbbQnUFN+C bv9PcGgSSxx+H9Qt0wY6BVGGJV9A9cE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731305393; a=rsa-sha256; cv=none; b=ufeuzWrM72R5jk9Byp+28tbuEOA6P4/3rZcRAutSTdbrbUIcBDPtCNXl9geOnPmMZ1k4i6 nppyj5rSMKHtWL41VdYBHTKlsu/gKlgr7yWcYhIU90MLVG34SCvhWXz4q02oEcPjLlqick 6dQcQK78CUprq4uJzD3oemFVYSOvLjY= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=I59+r9BA; spf=pass (imf29.hostedemail.com: domain of alexhenrie24@gmail.com designates 209.85.210.182 as permitted sender) smtp.mailfrom=alexhenrie24@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-71e681bc315so2937178b3a.0 for ; Sun, 10 Nov 2024 22:10:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731305446; x=1731910246; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0mQa7c90nuXP2OJY0olSmiXWHGaNL6/BylJprGzUH7M=; b=I59+r9BALp72u++CXe5HCA8c7llRTOVfQEkwaeq0GaCf06QG5f+cb3Ds7hkVOV5HRq dvDNry96xdDlA2AGSZzBHPkBRXAaHwDVg4O8JwVuYEdYuDma6Yq7M2ZKjT9frXtg/MKu gZAW+8qlJgTkxB+V09m73wSHKnaxyy2oocmDdGAc/yjywm3ViCoDrGylxGiC7uxTFrlF Zz4bqxAiuKalfJJnJAe3RjRMJ+rm1UXPI84cixY4aPs9vg+OMyn0eR7/i4wk8t3d72+E 2ypPDAweIwrk2SqfS6cV2hdWrviiTRzFL92bMKWdcp6rB+lyWM2Ko0UIs+lOp/MjClSa n2eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731305446; x=1731910246; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0mQa7c90nuXP2OJY0olSmiXWHGaNL6/BylJprGzUH7M=; b=McUig38eoz5wRS0gsImuTA02V/s9pXvJkkdpRryshGLzFxysm/eyZUWwOT/3FyKswV y1Odm+EikuIf5EEPRMuvozObLepBuzr3Yxp0Ffh/BmEcLPfI8yRX0nHtBYmIHpsV35Tt 5qL9/bLzaPBtqIkDOW8kZSH/hmcfuWvAu1IPeXoWfINU06RNP0PqoxzAlk4JJE/eGy/e Hh13Rx2LwcuPsL52U1hWxNDV99Ijjle/XDJWqM9dxWeyTZW+ifaUaha4KriXge4WO9Ey XJNJVYdiv/rQ018xHuSe0ipwv44eRMussO+7GYRb9NH7NNJ+4IkYSB6ZYfIXJtsdk5gT slAA== X-Forwarded-Encrypted: i=1; AJvYcCXqAIiJUUOMki7Fwt2iZQG+GgF+0sMSSi5IXHPEMoCzphhZkvZDPcjBz6/sJzA+bNbM6EKaI99dwA==@kvack.org X-Gm-Message-State: AOJu0YwQSYFxUYhbzh0vVvpIiS+NdVF5EWS0GB2j5voCG3wDN2vtQ0Cm 0j7YgK+JC9IG+Z71nTuz9rHEhsIi6l/+l/j3+sHI6cedxMNFFmo2 X-Google-Smtp-Source: AGHT+IHrh5ET36Htn7rWt+p6no1Q9DfX7142rTBBph+CTmGB4oBFxv1x/RCtPf8ntViIAqwJ5Xiijg== X-Received: by 2002:a05:6a00:6317:b0:71e:66e6:ca17 with SMTP id d2e1a72fcca58-724122d28fcmr14363602b3a.9.1731305445427; Sun, 10 Nov 2024 22:10:45 -0800 (PST) Received: from panther.lan ([2607:fa18:92fe:92b::47f]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72407a5ebaasm8252752b3a.191.2024.11.10.22.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 22:10:45 -0800 (PST) From: Alex Henrie To: linux-man@vger.kernel.org, alx@kernel.org, bgeffon@google.com, linux-mm@kvack.org Cc: Alex Henrie Subject: [PATCH man-pages v2] mremap.2: Update information about MREMAP_DONTUNMAP restrictions Date: Sun, 10 Nov 2024 23:10:19 -0700 Message-ID: <20241111061139.206404-1-alexhenrie24@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241105041700.1386571-1-alexhenrie24@gmail.com> References: <20241105041700.1386571-1-alexhenrie24@gmail.com> MIME-Version: 1.0 X-Stat-Signature: nqk4z7g4wwggdb5syppfma9zwogshohy X-Rspam-User: X-Rspamd-Queue-Id: E869512001D X-Rspamd-Server: rspam02 X-HE-Tag: 1731305392-912272 X-HE-Meta: U2FsdGVkX18ok5+ftIrvDnyLot//tmPauGGj4xlkRhrhoqtc13O4gKQEuHs0OPa+1X7+F22FkErcl7SrIJx5uZrRAmxVnDJb0GiBDYTB4eyctanGuzpNiEro35Dks0ve8FZPTMj8lhnwsAzdGUdXwCmjjoiTe6o5jNtcslvkR7y0uRBb8AxXH0KN0JmIqEyruFFXjBoDitF4qMfeKz/ESp4nZTAZwHuW3dMWNu3XfLY6CRsbYJa1yNKsVV1t9hOKTvq453cVFSVnJa0kkCK5bXoYe84cg2DAHI1+q+13pT0AbgG4HYnmrU4DyCmBwXxfjwDUiY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JV8kGmllidASni0zLn05o9PmeOEzQZDOzI/S4ZhEs= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Link: Signed-off-by: Alex Henrie --- Changes in v2: - Move link to Link line in commit message - Consistently position the word "only" - Use .B instead of .BR for a word followed by a space Thanks to Alejandro for your feedback. --- man/man2/mremap.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/man/man2/mremap.2 b/man/man2/mremap.2 index 53e0bcf2d..62bf17b76 100644 --- a/man/man2/mremap.2 +++ b/man/man2/mremap.2 @@ -106,7 +106,13 @@ remaps a mapping to a new address but does not unmap the mapping at .IP The .B MREMAP_DONTUNMAP -flag can be used only with private anonymous mappings +flag can be used only with mappings that are not +.B VM_DONTEXPAND +or +.BR VM_MIXEDMAP . +Before Linux 5.13, the +.B MREMAP_DONTUNMAP +flag could be used only with private anonymous mappings (see the description of .B MAP_PRIVATE and