From patchwork Sat Sep 14 15:18:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanya Agarwal X-Patchwork-Id: 13804419 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 8A7E3C0219F for ; Sat, 14 Sep 2024 15:52:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C8616B007B; Sat, 14 Sep 2024 11:52:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 878126B0082; Sat, 14 Sep 2024 11:52:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 73FD86B0083; Sat, 14 Sep 2024 11:52:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 5423F6B007B for ; Sat, 14 Sep 2024 11:52:47 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CBA2881F76 for ; Sat, 14 Sep 2024 15:52:46 +0000 (UTC) X-FDA: 82563786732.20.F760C8A Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by imf07.hostedemail.com (Postfix) with ESMTP id E88B64000B for ; Sat, 14 Sep 2024 15:52:44 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="jy/cL988"; spf=pass (imf07.hostedemail.com: domain of tanyaagarwal25699@gmail.com designates 209.85.215.175 as permitted sender) smtp.mailfrom=tanyaagarwal25699@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=1726329058; 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:references:dkim-signature; bh=5pK0bAAMii6l/zWCiTt8slL91+XkdnGQngiqo2N/DQ8=; b=X/iBO8bxbOXhTS/sugC6muTb+4LKWAox8SDfo+/jpq3xOTTvOAUGZi53XBPFXIf9XUCfQW vQG0iE3KWdtWad9E62/IRiopQvxgP3coNQUThZYymNy8P9sIHa0a+4GOv+pR/nBu24z2WU uY1qN5DKcx6CaiLFBW1cHHjPNQCmZYw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726329058; a=rsa-sha256; cv=none; b=qbYYVf7+6bZypEainA2LiSLJoQ7/kEMmNGPkr28m5K6gfXfPoaBmMCrhCYWOTI+UNRkCMZ Kso6NpJSYuHTdUnkpL0wTTcn1OZduT911RTcalJOMJqeIF2ImhG8PSS4ZxKRAsPCgT7iix MynA36rk2DvXryAzgsfW3pQiGOuny2E= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="jy/cL988"; spf=pass (imf07.hostedemail.com: domain of tanyaagarwal25699@gmail.com designates 209.85.215.175 as permitted sender) smtp.mailfrom=tanyaagarwal25699@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-7d4f85766f0so2709118a12.2 for ; Sat, 14 Sep 2024 08:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726329163; x=1726933963; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5pK0bAAMii6l/zWCiTt8slL91+XkdnGQngiqo2N/DQ8=; b=jy/cL988A4aelcI0Ta45Yfe7e3VaQCXbZm05qV/FeGysxkhgN8rQPq1sRqpAd/v0D3 7MY7VqPyWPHuEIQtIvZKNsEgAKe9AD0uPq0aOE9SnFtiZ1gTnzX117vdvrrLHiO7wl+0 quBdquRxIP+DAU0m2j6FpdnSrHJY/L9Ji5z0b+HTaHAXbERREGpveUxJvlLG5GOK2NsQ aRjjFXu+w4sTLG2AKziSfS0oKU7BrFX7JdqQUMQ8X7apal7ZufCue5uKLUYKIa3pyNj8 S0GRB/3+WcWy9HDqBQHuWLrb/Hdv3w+b5RtI293cO8l7y78Pk08AupGB7LfrrdD0t5SK mJEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726329163; x=1726933963; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5pK0bAAMii6l/zWCiTt8slL91+XkdnGQngiqo2N/DQ8=; b=G5r4xKaxTKkaodxASCG9ILeDVpNl8oUEX+mzFZFOVrxqO0VNnJlVCTGof0+sE/STDl bV6DWzjcEjUS99JizhoH64BPeIA3t1GAvoclaJQDQgEfBwRaLdsqTbyGhbG2lATJjzKx xD+8L61SCbn9k6lQTPUkWrJ6kdx2uoRscT95xg5/G3SqKxdx8iGOdFSIi9TViFA5Lyot XUsqi6CegIAArm3oZJkAL66reEzdAB8a3YrRNsXl9Bi0W0g2v3hjyEajLUVo1dEYxSlr SUJkwFhqIKUY86j/e7ilcGCLKJT+nhpAU7Gwk3NmBGrjH1grd/RS6DMzf0ucZZPYPfWW intg== X-Forwarded-Encrypted: i=1; AJvYcCXZ+RI1uaN0u7RH8p/TnWRWBV84k9EwARLk+1a9ckbs+NJROhxKRx4+e1cw2L36xDpS+XLkJoS6tQ==@kvack.org X-Gm-Message-State: AOJu0Yws9jB0HireXyc0v7AgkJ9iT74nCmxbNDn6cilu0lm8LxQSH7I+ OdJaNwrHaXn4kHG88v/xWt+H4EYoww3KhkHymJnS0gKS3+xdwQUOZwXDu1pHVe8= X-Google-Smtp-Source: AGHT+IHCkJjIMP/SZ7LxpCIEbY30ptOv+YfC47ioTjU1MsZOgTKZZ9znxzpOD524Pah88Yb/tkV+ow== X-Received: by 2002:a17:90b:2704:b0:2d8:e3cc:6c0 with SMTP id 98e67ed59e1d1-2db9ffb13b7mr13605191a91.1.1726329163497; Sat, 14 Sep 2024 08:52:43 -0700 (PDT) Received: from localhost.localdomain ([115.97.189.145]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2dbb9c4c292sm3834551a91.12.2024.09.14.08.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Sep 2024 08:52:42 -0700 (PDT) From: Tanya Agarwal X-Google-Original-From: Tanya Agarwal Subject: [PATCH 1/1] mm/mempolicy: fix comments for better documentation Date: Sat, 14 Sep 2024 20:48:01 +0530 Message-Id: <20240914151801.4388-1-tanyaagarwal25699@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspamd-Queue-Id: E88B64000B X-Stat-Signature: 6rbruinq4c3hfy385rdrw5b769esrwqg X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1726329164-362305 X-HE-Meta: U2FsdGVkX19aeBv0QgPpVmOMNYFTRcD/aRgW/K12XY1C/ZBB5QDcWqGOCfonLKeXXzJakyCUeM4FUuJsrUxijHamgUKlltvrFODXm2CAif4oaJxWOpsCnP6E5SiCtRYfirHAcHsjW3tBgIdGbe7O9bYPcGGO3yQDeJ4/arbZBd1XD2jV0qpLhpNQ6PdjkrvuBUwBIWH0z8+m7YMGbuqOiipB+YYNjC0+xBZYl2AvhsJDQwM2C6sCL9im4/2trmvRp5ttHm1DO6DDiEOxzHoi6tYGC21ye0MjWRE1fX+QaXglVdkqrOeir5/SUyGY82Wt0L2fSZbJ9fW2sYDnOI3BC3ubZ18plHrUztNtCp/x0jAjdWX12qJxHvbHxcz5a2FA4v4+E0nFyaNqjWWH4EO1po0NQZCRcKS4qS1ukzJOWsu/CM6gZOeSzDCWbkYSHJ8Vs46Awvnq0AVYyDPcAhcaF+UCBIHPrilNEHT8VOJE3fIGvNVwuflY2fApDmk9lwZcstzaR46YXOFHbI4pCV/CE+nXuoaAQxvxmu9L2psxfvMJwjFKT6X3eG2n81PWHW41qZVMgXmfIlyZHkTmkfbJjioSBNMrsY7MFNe/CKeyFtqFn7bHVw4fobRf4C/sfQacs+FGjHWPUj2dFECUxBQhAkOgyp3Aos1dH+HKgU7t/p2599ntjQxe13jt1zhT1BDaUdB7V98TzAvLYeqXxmsNebvbVedFf913UQVAYRMpSxA+NK9jD8mMg+rBFFxTGKuKmxx60ThqGGRg/ezCNc1P5Ij8W2f+IG5nQNKN0GHpf4d9I3Uws2Yg3o0SWmg8k5HF+e+b8ZCQHr1UBxZW2y12mrbrOllp4ep2MKd2q4/la0sjFo1hm5Dqh1V1sZviWKWxOa8iULdd9YlGYvVV5GhCLOsVdCRTj0sQc1Z/fJzd9JdX6UdC1cmD4N537mC8JWfj/CmbE8n/3kqb9DnXn5i mZQl7wGf U2Fjwt9IByrVhS2oUrR2CWXxQOrxMgIOBqS4BWDilChfu2EnF7f0klgvt7OMU1aKYUQx/+/YLAIrlWUVS8NrT+ikOidHT/rkkAdtxNkOh95gJr0JIH1e0IdeNxfxzAB867Il6DvHOhKPIyeAlUq3zGl4XJGiHYDtS0r7FHdUvCG1dOili8umkgkf3c5Dnwex5ASZinxt7QK6q3NBFlVe9759tFjeskWQAYqmy3ZtkKnUI26NFw8AQD83TqRaqpgVPyDkJTAJ5h1tDQ/typdMmVGz5E2/G9ZSDN3aInRgtWviH+crssXMSbMDn7kJjSTFGfoL0reUdS+l2i7TDhnqWNRGJJe5QQliWjb72Wj0MySC6lVPR7qHAjHWqiA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.020281, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Tanya Agarwal - Fix typo in mempolicy.h - Correct the number of allowed memory policy Signed-off-by: Tanya Agarwal Reviewed-by: Shuah Khan --- include/linux/mempolicy.h | 2 +- mm/mempolicy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 1add16f21612..ce9885e0178a 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -47,7 +47,7 @@ struct mempolicy { atomic_t refcnt; unsigned short mode; /* See MPOL_* above */ unsigned short flags; /* See set_mempolicy() MPOL_F_* above */ - nodemask_t nodes; /* interleave/bind/perfer */ + nodemask_t nodes; /* interleave/bind/preferred/etc */ int home_node; /* Home node to use for MPOL_BIND and MPOL_PREFERRED_MANY */ union { diff --git a/mm/mempolicy.c b/mm/mempolicy.c index b858e22b259d..613fdb73c404 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -8,7 +8,7 @@ * NUMA policy allows the user to give hints in which node(s) memory should * be allocated. * - * Support four policies per VMA and per process: + * Support six policies per VMA and per process: * * The VMA policy has priority over the process policy for a page fault. *