From patchwork Thu Sep 26 18:35:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanya Agarwal X-Patchwork-Id: 13813591 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 C11D3CDE031 for ; Thu, 26 Sep 2024 18:37:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 104EC6B0083; Thu, 26 Sep 2024 14:37:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B50D6B0093; Thu, 26 Sep 2024 14:37:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E97D76B009C; Thu, 26 Sep 2024 14:37:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id C4C226B0083 for ; Thu, 26 Sep 2024 14:37:17 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 5262A1A0366 for ; Thu, 26 Sep 2024 18:37:17 +0000 (UTC) X-FDA: 82607746914.24.FBDA9CD Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by imf14.hostedemail.com (Postfix) with ESMTP id 4CC6A10000A for ; Thu, 26 Sep 2024 18:37:15 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="hJNsdv/G"; spf=pass (imf14.hostedemail.com: domain of tanyaagarwal25699@gmail.com designates 209.85.215.173 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=1727375714; 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=+85r66f+dsQtAvZ2ojMyKraolRdBy3fkuiARcd5pSLQ=; b=qeu4+ODRrpTuLDAhKYqksXhXKBhivJAlrEBIQjTSCQEJ7xi3uz3WulRUN4+2SpcLrCRwWX rBOPTLmmR0mBhAJLb5Uwjeof4KBpsDlww7IdR+9M0Dz2A//kjd7YtvhkmfaR/a4q1NITb4 9yagtZs32wB17eLexKbL8ed3gRfXhTs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727375714; a=rsa-sha256; cv=none; b=omqD9xC9Et93/ZZ+JjJU8TsAGk8bRBH+uIyUCqpTWvsYRXFiV1UPOPqoLfY1527F2G//tI GgOh5RdFsByy1rymtvtXX6LlJpCZuTpOBwGjmIhE6Qrab0Qhj//7rZDM+ad8Ooemr+BKSM RNOKQNJ6qYHUa3KXYvNCT7CQt5KRY/I= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="hJNsdv/G"; spf=pass (imf14.hostedemail.com: domain of tanyaagarwal25699@gmail.com designates 209.85.215.173 as permitted sender) smtp.mailfrom=tanyaagarwal25699@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-7c1324be8easo1861983a12.1 for ; Thu, 26 Sep 2024 11:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727375834; x=1727980634; 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=+85r66f+dsQtAvZ2ojMyKraolRdBy3fkuiARcd5pSLQ=; b=hJNsdv/GqeekoBrftS24uiotQLVkU+Et5Ogc1DYuGByw9/maPYsjALYDQSYf4D4DmE VARgd3zyrcW+iHpqsrjgetLe8K0FBMaxKWcoI5ER74Gm0RkI/hD82pd4y/0reZxYAnGn SqVPF6rhyYDvILw6qXIOirmDbTGiQFlzOh8CaZRQ7kEZFG1y36ugoA8Cd9uz+1JTNjT2 RF7SnuXs67CoTksnTE957B8r/zo6nSCuKW8YLVPaQDtb8mnEsd6+H68DsjCeXOTTiRNG U+HZFPwoVV/lsFHaqVWQnr4TnoPF/oiP4R3wOyaJaeZ0Ci6S5R/ZUO0s5uZXpMUkjnNt UvsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727375834; x=1727980634; 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=+85r66f+dsQtAvZ2ojMyKraolRdBy3fkuiARcd5pSLQ=; b=HZFoa8Otkclx9r/e4JUw2yqEhH22u2e8OkxntgSrYqhfCe5WHbeDDKfgu52IU2MBWm sPoDVm7jwFbomMjKlgaCMT2I4cCZa+ln1ZISurkpcoYiAaG3LJPndUZJn+j4UPuxvcxr lhW/9uLV6LZPbx9KoL527N5y2tHyDyx7216di5ysqSgAbalwEcUMigYISJtOZXzS3xF6 IsDTEaSCwDo/s8p4clVaoGPFmqkEPC8IHCy+rvR/KeLUqo9rz/cJoUTxD3cMuyvu+TqR CHE5LpULmIq6AH24K7TVfRb3F3m9H6s16a2KMhjnX6dIOzK6qaxS92B6XVoWrRr1xb6E 800g== X-Forwarded-Encrypted: i=1; AJvYcCVIMu9cbQAHyesp5wmyT+hBgJk6iibWeAcUfAMqTuEI0Q4a6jJ0QrPhGXcDTrqnStghdeM1Amdz4w==@kvack.org X-Gm-Message-State: AOJu0YwuIYa1jL+QR2vLlJ1u6fp3+ojilJ3bh3j9yOlk8Nsjil3WVuma aHYoP16gEAowsAgP7KZr8WlK+Qyz7sF3U7vryvHlyfxJdlvN4UBS X-Google-Smtp-Source: AGHT+IF9RB5pon0jPs/4BtZuM3n7w7z/1RfXixExobhcuCZldK5MYI7L+n5m9x9r0uz2HNxrFE50Kw== X-Received: by 2002:a05:6a21:6f83:b0:1c0:f114:100c with SMTP id adf61e73a8af0-1d4fa3c0a4bmr1263811637.17.1727375833923; Thu, 26 Sep 2024 11:37:13 -0700 (PDT) Received: from localhost.localdomain ([115.97.189.145]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71b264b7decsm215249b3a.47.2024.09.26.11.36.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 11:37:13 -0700 (PDT) From: Tanya Agarwal X-Google-Original-From: Tanya Agarwal X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240926183516.4034-1-tanyaagarwal25699@gmail.com> References: <20240926183516.4034-1-tanyaagarwal25699@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4CC6A10000A X-Stat-Signature: co5dgxfm1jmdbmungt75id9xa4qcwtmy X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1727375835-131945 X-HE-Meta: U2FsdGVkX1/ApUFtit5lfWejSIXf3q++4xytosXunGT5V4G0YKTrNqTTY2QJyDM6Ny91xeDR0o7IIUsO028hQXOkgCh1RIR097MX2MOx9PqlFYwdjhY0Ad+kZJbSjDgBerE4v3dlDK7J91D3oRTHmq8YaarN9X2tWy/rAhZ5ogxmC4jfitwQgA5B60ADgn5Uj5tNsFKl3kQrzTV3nZuLv/SciD6rIPtrsprBhxqP1XNyTAWNHiP989C+q/nNbT9fAec6c8QAac65QCetaQJ0j13e/P3oElt3jIbg8yJLBhbn34DT9NXcdjEMl7YdmcyhqOfPgFU3lUDEBDkO2p4T5kUA0W+2yqtOQ6iAH9PF4GP7q0QLe/Bg022XUgm8yo/9gqD63ChXCPO/3sYPq7VzsG1vmZfUgXaZPrE+hnndvUBjOMYfYR6+0Cdr/8n8zg3devZoTkuPlXeFtlf00x/lhzHJ/p2o35Ea804bggmiAIGaWYguGwYLrQatk0yjY2tcMNH222Bd21QtkVZydkl407FsKzY80IgUNnBu9zai4uOfr+BEgg3z5xq5EWYEnRmGbgyvawHmAQTiuJyUQ8x2aJ89tVrxoJScdCDZrv03sUNlqaKEz2lgx/kCq8tZvZLACG5dE9UHalrpcllXUAX4kbdBtPVZcTqnNeXRcCRu0vEWPAELVaK9/QrOUQDoeXxXX/r1JFHIFju5OIXEZjmKk12YT8iXXkumr7CuhAB2hLtAoGDCXGToF1xPMEFa2g5sKTOkuH0hqr0H7Vm5JAX6vjTOiM1haGE2YJEkze3bJvKXJpy16LBw1hLmWTFEmm4jQNUNRdB6kSm7cyZTfhPb+rC1lo/5OSMYNljWnx3F1dVTPX35YWfepc+fS11R3TA5Rl/hE+AqCClFJyH8/meOnxWTsnrZUdIRL7oHzhMFuKlgEH342xveKXoLDzWvezQ6YRJW1tUf17VI4iPSVB5 80VZ8whK eZUzcSqu2QZXoQNJjk8T2dIp5ROz4/xmlEHl4MI34AJAIlHZrUppoiYTzww/mt82YwGfuMNrcj+oZR69PysbwCIdWJ5QLgt7GOwxcNZWHIGqtHZaGgRidtIIQxOSdD/yXqJJBUATT+I686jwc7yk8Gs1ECKI3rNgF9BwexBtLrgX8X5efHmkxM1PJKFrw97JQTdELlaHD54crCis6Y/pdcLRDeYct+BbQeeqw+/YMhMClGrdjz08iAR+/LBLig9N8FuBAaKQituTxX8uIlcAittEpRWlopoHb23f0ADoWPbXyRDLpXk7I+cuVFbpi9s279FCAL+qSS/12Jwo6wobFVdisL0+Xg8JywxVkIgccCdB9q/pcG+f1HY7m9YYvx5g6cDZrmzFcXb4Yqg8HT4Z6LkNRMkx9ohzHcX/cbo1lELVb5Y91JGcjgnoiyA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.004643, 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 and Correct the number of allowed memory policy Reviewed-by: Shuah Khan Signed-off-by: Tanya Agarwal --- 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. *