From patchwork Mon Aug 19 03:19:11 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: 13767749 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 7A0BCC52D7C for ; Mon, 19 Aug 2024 03:14:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A8DBE6B0085; Sun, 18 Aug 2024 23:14:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A3E5A6B0088; Sun, 18 Aug 2024 23:14:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92CBD6B0092; Sun, 18 Aug 2024 23:14:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 7545E6B0085 for ; Sun, 18 Aug 2024 23:14:01 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id D62AC160F16 for ; Mon, 19 Aug 2024 03:14:00 +0000 (UTC) X-FDA: 82467525840.11.B6FA72B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf20.hostedemail.com (Postfix) with ESMTP id 56E1E1C0009 for ; Mon, 19 Aug 2024 03:13:58 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nbhjmZm6; spf=pass (imf20.hostedemail.com: domain of alexs@kernel.org designates 139.178.84.217 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=1724037200; 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=Uikc7QVulesewCLajHhCPzuazPjsSZDofX9AdtvCwWM=; b=SpCyesufLHQnzWG8IPusVFSa4NWC3u3zEvSM/bMvvX/UHWpNJuhti1BqPHTbMvgOYdFEWr zY/Sy4S9yqOY5vDwCHFD93TP9+6HL9u3VVFGFeLR43Gc/mrtvpNjOtpGg3QxM3ufZVScnR K+pdC+IKKX49qG6cQcjwiOxaZxS/2Rs= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nbhjmZm6; spf=pass (imf20.hostedemail.com: domain of alexs@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=alexs@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724037200; a=rsa-sha256; cv=none; b=OpUO4v8I93yyuCzHvxRaqb3b/FBQ15+5VSmf97IPxDaDYnWZT7zPFfsNaHzaqg/cIOZwoz 7v8AWsuHqb1RF8ljuTi5pP9b/h3aWabDuU5KQf7btRLoudUOqoZ/QMXau28WRjplQNK1zS lGwj59FusO7lyL0N9oCf3YE9j2tHuSk= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 56D8B60921; Mon, 19 Aug 2024 03:13:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09C6BC32786; Mon, 19 Aug 2024 03:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724037237; bh=UV23h9/RileAKvpnFwylnCK22FvOCaxLZvjBqnf+krs=; h=From:To:Cc:Subject:Date:From; b=nbhjmZm6RNRN5qQMK+LaZNwNr2v2mj/onOsjh6GYA6cbVHtikLzBpHYk5yGjBdBUT FwyiE0DvdrTHHRj+fpZ6EGJPlT1aEO+l8trKW3m1YleT7t0b1/NtoC5CTcibao+OMd yunIus4HBS+CVb2/+onF42UjNPC8JGtqhptHY6E4jqfaNX3dIuYFClnenn9M5AJWtQ 4hzhQgNpobr/dUzf9jTylgHdfhirpDbaTi4awH0pHPMe1NHuDg2uhCkmmdZBaqZjvA 2Q/45IEyexkZLJuiA1mRywjYfrRvEaagu8levQMDF4ThEIzG0tjRzvYwHArHvaBFV4 8vt+IKnVgV8+A== From: alexs@kernel.org To: linux-kernel@vger.kernel.org (open list) Cc: Alex Shi , linux-mm@kvack.org, Andrew Morton Subject: [PATCH] mm: skip less than check for MAX_NR_ZONES Date: Mon, 19 Aug 2024 11:19:11 +0800 Message-ID: <20240819031911.367900-1-alexs@kernel.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 56E1E1C0009 X-Stat-Signature: 1hkakby4psffjxhan3wa8rp493owy9gc X-HE-Tag: 1724037238-113082 X-HE-Meta: U2FsdGVkX18vgkV0g5JaJBdmb/Lf14StfybKle9DkarDjD2RVSg3KOOlHG1133PBx7o6uJyZueDhdiiNa8eYqei16ZxVt8NzXpYlPS0bOfnbWJK7kyOjxIYVRDkkBmZNOsw7Ja+x9K+HIHTobSn8pZXT01KfzVN3HCXLWb/tsc4VPd3lRBTBxl5uGflPEVhkwAf+qJ+nH3cHJUKZrMkf8+y4qGIkaGWFMy9xBG2mJfqFQa27gWpf2pgaFKX7lAiyEU4D4DqUJOoKEa1tUiwI2+PLoIB4W5nG2entDOuWnnosmW/cfLVCIvD4YzHkNHZvc3wRSUGX8e5noXtErlx5RGy8EH/8hattHEaiPWGgysi/CvJjVTqsNk5Edbou9unEP715M/qge5XKwEYJ+LPmwVNcZLJffA7aydwI8E8aQpY6n6KX+s1zjMeBetnfT0z6W9DhySlS8pOG7eMgtu6UANZlV67sYaVFhs56itEiT5UcOAsy+/+cA216QS9TkN3WHEQyDgV5dcrA2W8ZijQAK0Xya0omMM5SFqpUHxw5gfR1hcemupvAZtQSgPCTy5ZCy0A+lx4JYqo3r5R8TbzKf5ciZRYKF2lbiVS6k7m+2NMQSCrh5bKq0tzqKMfYNtHhr8q/tl385EekvblMtJ4COP1A3YsDkXX+KB0m6De2GWCwdT29LNYNjj+Y4qyRzKX3bmaDODQAg6u+0EZjcSzl2teSzlw8ZnwsXe5N+GwnISkw1Y8lzlIO3ziOxjMygpjrQKliEknWEIBfhtPXENpdtrEGv7jKsQfnf2TnHJfPJSj/NdY/kXW8Brc2tbs5k6AAIOpotKT7AVoJPSmC0MJXYkVV72b+V8vb4PzU666oSj3d6QiNE1YQ6TpFdIYqOLYbYmYIB1NP/JgzHuu8A33Ginnj1c0rl1vQJ1PXlA9aLmYDrwUZiqidjscWyYxYrtvyfihtgF1Zka6oIQh34zA q/bb3I2l 0y7FtTHsAMperDS2k4JM5zquAAhDh9QH7hMwH9whGeRNWMFatabydBa4wUE+mw+ItJhA3g70kWkC2BuKyiqYoormgFxzO9eyy+GjzmGiw4obqyUs2uOMi8MD7Krhlv9X7JKVvdrcf0DV3AiWf+QknOykqNcA4oYAyN75uFBw7kIy3cvoyTrNcZshYyBhvqiBhgkrvYIBMmZfpF6agAUZMkhriFxDQWTIaUNc2uUnqFnK1vIvheXnaftzN4L/wWC4eYeqeJ+PE5Tfa+6Q8SlsEHVl8Tj+ubqfOlFgcQ/YY3jI2E2sPtUetoYIkVd4d+2bAZhg+ZGi8KTG4rO2UAZQRnwtwNDF+z4SE9QpN092F4V6bYfGWnXHINp+S6Bq7I4Y3hkM7TbNZaJ3B4Xsi/jDQ23BNWw== 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..7acf67c64d5a 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