From patchwork Mon Aug 19 11:26:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexs@kernel.org X-Patchwork-Id: 13768189 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 B5D23C3DA4A for ; Mon, 19 Aug 2024 11:21:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 170386B0082; Mon, 19 Aug 2024 07:21:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 11DF06B0083; Mon, 19 Aug 2024 07:21:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0333E6B0085; Mon, 19 Aug 2024 07:21:20 -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 DBF016B0082 for ; Mon, 19 Aug 2024 07:21:20 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 6F36B1611B1 for ; Mon, 19 Aug 2024 11:21:20 +0000 (UTC) X-FDA: 82468753920.18.55C0DDE Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf14.hostedemail.com (Postfix) with ESMTP id 41FBF10000D for ; Mon, 19 Aug 2024 11:21:17 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=B7aq35Ot; spf=pass (imf14.hostedemail.com: domain of alexs@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=alexs@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724066401; 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=um/UBVzmmLG27ajszW9XqKyeBFccnTpP9werQGL0rqg=; b=gO7XCgMdzQaLBLylxbfLUibp5PVS+QKrsQWpt1MmxEWf1aAzgdLzmyq8BPppHmsc9sPjh2 RjFK4T+4nbblah0U+yf5HOg7KaTfrOJoQQe7eCvxY2tOZjJ1UkFuaqbr9qRvxFp92R2s0/ 99DmewVVbn3ywpCjhdJt0i7Putj964Q= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724066401; a=rsa-sha256; cv=none; b=iazjMVuOoQdP9H1FoqYBckMF5jmi+2IQttoaIjj+1w/8FlBOYUm1V9M+M6VcMkXO9NUk0F R7SpBIwVfRu5O731Ct85Eq9JS8rd6XU1C7HMYJGXxVlkIiKvNH5El4eETmYq4gf8aOEC9t NMKqrWvTckd+ydPoS2XEBdI9NgpKsns= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=B7aq35Ot; spf=pass (imf14.hostedemail.com: domain of alexs@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=alexs@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 63B74CE0599; Mon, 19 Aug 2024 11:21:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43448C32782; Mon, 19 Aug 2024 11:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724066473; bh=0VjnIf/hlDEndOs7nT0UPnY2vRrpoMRkfUmJ3fevleM=; h=From:To:Cc:Subject:Date:From; b=B7aq35OtAYcOn3I1hv1gz/xT5z3jHJXmDN9MfBhjfyz1ItPp1HBYW074XwHrQhxDT dVSA6h7ofBRZhg71JJ6LulsaBZQQ9aoPIWwhVuW314b4wevL7GyNXYRB8JqE44Sm9x QCIMaiJyGq3pasNr53aLv03eMTMY1KVSSOSt5SWUSdRJZ15Um9jC/kompdKZ6Hx45S YSnQ+UKQjj3WD0qal4qcsKlTf0xilEgYtywAXCQBR0VacuLa2QKZ6jtRZZ/CirwQxz A7Zydp5eam9cpxEMypkRACfNPDNfwQtE2w2HWdg+PI+Gd7jVItHdFjE2BLBlZ1JWFh 9JcsgrDS3UAPw== From: alexs@kernel.org To: linux-kernel@vger.kernel.org (open list) Cc: Alex Shi , linux-mm@kvack.org, Andrew Morton Subject: [PATCH v2] mm: skip less than check for MAX_NR_ZONES Date: Mon, 19 Aug 2024 19:26:28 +0800 Message-ID: <20240819112628.372883-1-alexs@kernel.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 41FBF10000D X-Stat-Signature: fdj49escyhygh7c3apkdyjc5ztcuxah5 X-HE-Tag: 1724066477-186697 X-HE-Meta: U2FsdGVkX1/Wzp1H/TxR7jjWqBjEyHRccp0iCvjbf4T2EIuaGeSH/jkpJjxa9phQp/6oyqrdZvGpVK7QqhEcx+Aj8zfyiCROYiV+sVlTAjFGUTIMOflc6N4fUBbAm6UYdinlqX302OCG0/YGpxnp4esNJPz/UkzLVcltVPvLWlE1ICQUUqd3IYWIsXYflohs5ae/T4Aj61KAGbWXnPsMj0wSvRg/ILN2LwV/9A+1YXtxEFubIbahiToVjymf0/5GD64yDWT8ql49fkYblMu5xt9qCp6umcNmQVu3ExQ+XEq+xukxLmGF+K/DjDLy6D4A/pklk9br0mnqlvtM2nw45kZ3S01WnAsb66FH0rRXd74hxKDr98VtXbbhtAsBj4GyfvsmKRiyHxIKwIYZRI9WqNucBS/9LHPiTDdSRzrP5FBXWp0mRk4oMhmg+6137j2HaIgqJpTkDO8IlTzq8TXickUH9FXS5FM47T7ca6Aomgt4mqPym2AlYS9bm1VLizZOYvq54bkb6bfpim7U+HFQ9lcc5NA4UPnPkIRl6qW39tTosX14r1MgE+TXhZKpyOG+iL1GErjiDn4mNSPeMji9Tr4QoXxKP4xdEBaFHUs6LikY/Yh+qCkUbRRI3pTpmYazY8+FkunbuZA+OTzAU6ahvKQH8Mzf3KnE6vxGGn03E/wpWrOOhNLgQlT6V9qtouv00pccY2Bxy7Y5vM7gQDJcnZNIhkypz+8dD4tSvo6Uzj+6znO8Q1ZNdiZGuGtPqzaeAJNZcP9+T8J4dapSzrf/w/tvoXDBH+0LCkmvbspEAsHQHwPDrEBZ+O+CBhqNk1R7kuCw0OVg6dPZNdeYCthUscreFRhcKzBDZxF1rLxrxRq+dqMRTf6y5gtpUSG82aH9iAQ6TAfN1qAE+IKgg+XjkPEiyqt6JQ8K4W+OEqitZ9Z8s1yAd7/FEnZ02TTL/hp8qG1+pO3NWVegyEgZT3B e4fzYcXD pMhQCjlCJhAwT397qyFyQUj9XabxCzdNAL2FX+c0BffNpKw+TAy051Zo1QEM85x13pUvQa6t9Z/Azy2h/yhYxxinOn5n+9fsbgE+8K0mB4zBcJViPzoIpqupvocCEOy1PnaFr4VaJXXjYcqb91c+yju/b0A+M9IpY8Fxd5eZUDmwmIgP3DFd+oLvm0KjivktmUpTopHqBAGghukxpWnQktpPSq2jhXXHkfErg5HYXC470r5DYlYd4Feq6SQ+s98EgS+L47ncMJCU50DnVAjEQyIQTeUPHKNAP2ciost70C3wvNb6hLwj7x/uRlLAMwkcbs0/VhoOJRpVrDChTZFMDaOM/u71MLhqqLJ+ENy8Ui/ZQjDjildGwFlM+rA9BYJs+kViPPx7d4hvMy1M= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, 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: Alex Shi Remove unnecessary '<' check for ZONES_SHIFT assignment. Signed-off-by: Alex Shi Cc: linux-mm@kvack.org Cc: Andrew Morton --- include/linux/page-flags-layout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/page-flags-layout.h b/include/linux/page-flags-layout.h index 7d79818dc065..7edc2b8a3414 100644 --- a/include/linux/page-flags-layout.h +++ b/include/linux/page-flags-layout.h @@ -14,7 +14,7 @@ */ #if MAX_NR_ZONES < 2 #define ZONES_SHIFT 0 -#elif MAX_NR_ZONES <= 2 +#elif MAX_NR_ZONES == 2 #define ZONES_SHIFT 1 #elif MAX_NR_ZONES <= 4 #define ZONES_SHIFT 2