Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7746305rwl; Thu, 23 Mar 2023 08:13:25 -0700 (PDT) X-Google-Smtp-Source: AK7set9GVBq+EqbW22VdhorTGoPdtD55QT+4HYBPOHrQpepz1sE6v1nxjWvMSWQGvzZHBkQZevB2 X-Received: by 2002:a17:906:b0b:b0:930:f149:7865 with SMTP id u11-20020a1709060b0b00b00930f1497865mr10405183ejg.21.1679584405582; Thu, 23 Mar 2023 08:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679584405; cv=none; d=google.com; s=arc-20160816; b=A5rLJKQ3L14YAoC2+Lc0ongR5o7UGqLKlVl6vxo9QKRpjTsiGUdcUh8dsPh9eq15I5 Fp/Lk+NeiLx1GRFpG0stcAUbRjQYqPZe8Z3Gzw+n9eQOVkyYHFH4J9kD/m6ZF27p7amE F2AlfrLbW6YqwhpsRk087Ea7cSSpBqb1bbGVXR3qpWsS+a7+ySe6HEuAmaG7a5+jAqbV wJFXfoBRb2fh9VT76qRDW3EzTXSgSO7mx6mvjpjau6t3B1u0LZYzdt54E1WcnsvXtWQ9 NiM6IMyWVVhqSLh3fK14fS8gItUSwqalsb9ilc3u4MAoISC4EUN9u2Q+OISOpqQ0fSyA 5EHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=ul0USEQDJ8DvbiER0Nq2KsZDcPLksKSlHdbpMj1iPR0=; b=C4OAO4ESRs0JibKUC7m+L0wBa5AGPp1YPs+AZe8W1/orhY/eNnGw8h+ZFDZA3UFx7w 59KUOwNyQcsGKhGO/Erl6wES6JLElyJdjSCIofs+YnER2XShRLwl1e2KuQm8aXiYnwcu wr14BLStNPwrhjY1bGPkmfoZ0CqDq3Q9Wm5rjPhCaUbj8Qu+IyVyf8msRozq88czgk64 rsXRzwCK1xfnpdQiJ6JaolNTViesTidxazZt+Y3eR4T3HQPkwiu0ATrhwEDGpIhfk1KU NKNtRvgqnd9r/Ba9Mpsk5uCdKRCmkA7ynleW22lFPZOoVNWfucaM6WsDozQMfcWsH4q6 7zIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a17090663ca00b00930a46a81dasi1304291ejk.975.2023.03.23.08.12.49; Thu, 23 Mar 2023 08:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbjCWPGl convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Mar 2023 11:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231730AbjCWPGg (ORCPT ); Thu, 23 Mar 2023 11:06:36 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA97629409 for ; Thu, 23 Mar 2023 08:05:18 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-317-R2rEoX7jPMafGqBjMLdziw-1; Thu, 23 Mar 2023 15:03:57 +0000 X-MC-Unique: R2rEoX7jPMafGqBjMLdziw-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 23 Mar 2023 15:03:56 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Thu, 23 Mar 2023 15:03:56 +0000 From: David Laight To: 'Mel Gorman' , "Kirill A. Shutemov" CC: Andrew Morton , Vlastimil Babka , David Hildenbrand , "linux-mm@kvack.org" , "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 00/10] Fix confusion around MAX_ORDER Thread-Topic: [PATCH 00/10] Fix confusion around MAX_ORDER Thread-Index: AQHZXBOmxeBm0+nagESVZv8C8tAqRK8IeMpg Date: Thu, 23 Mar 2023 15:03:56 +0000 Message-ID: <54496a4d8b31499993aac50f2979f99a@AcuMS.aculab.com> References: <20230315113133.11326-1-kirill.shutemov@linux.intel.com> <20230321163845.qpybxa5rlwclvko2@suse.de> In-Reply-To: <20230321163845.qpybxa5rlwclvko2@suse.de> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.0 required=5.0 tests=PDS_BAD_THREAD_QP_64, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mel Gorman > Sent: 21 March 2023 16:39 > > On Wed, Mar 15, 2023 at 02:31:23PM +0300, Kirill A. Shutemov wrote: > > MAX_ORDER currently defined as number of orders page allocator supports: > > user can ask buddy allocator for page order between 0 and MAX_ORDER-1. > > > > This definition is counter-intuitive and lead to number of bugs all over > > the kernel. > > > > Fix the bugs and then change the definition of MAX_ORDER to be > > inclusive: the range of orders user can ask from buddy allocator is > > 0..MAX_ORDER now. > > > > Acked-by: Mel Gorman > > Overall looks sane other than the fixups that need to be added as > flagged by LKP. There is a mild risk for stable backports that reference > MAX_ORDER but that's the responsibilty of who is doing the backport. > There is a mild risk of muscle memory adding off-by-one errors for new > code using MAX_ORDER but it's low. How many of the places that use MAX_ORDER weren't touched? Is it actually worth changing the name at the same time. That will stop stable backport issues. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)