Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp363135ybv; Wed, 5 Feb 2020 06:55:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwBps+Y+Z8KMU8Drl6EVtNsNMd3fLvXw0QpvXoutT4mLvyDxSpLxa9UsWHJhMrs/D/MzIK2 X-Received: by 2002:a05:6830:3153:: with SMTP id c19mr7663369ots.39.1580914557513; Wed, 05 Feb 2020 06:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580914557; cv=none; d=google.com; s=arc-20160816; b=YUq2qTQez9oe6KPmPNXnfdf7lTxy1Wpf9aNvV9rCevtYjwtzcPfss/VaINAkBH4F02 eSHhuw/HtbGa8byLQjGvtM88+9xIfGM1Tcmui7XJX3ndLq4KKo30ms5PmFg1YRWY8g6r 6hgRE+P8kMO5soPBlz6sR2gDgr/RN4A25ik/8yhOVXtu4rmIXqiLjh9FkqN0i6H5Oo92 4IOui9eGTeW6z7+GBF3/Odco6kFdFb5rwP7F9yOQ7BpsN9HCDlvV5PwL6kr8L2OW93sZ gvuoBOzoBPJ/iivBubYIr0PaKsGlvmB0KQFurfqn7IpKqSkkrZR08rb5BJmsVAm9thhS szIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=j72sL+V7LEIvgsH0mz/aldnQo0SPHPp7Jr67/PUy9yo=; b=s0qw4sbyHzIZup3ygZMab9bo/LBbV+cNkRwknBhzkkzBDl0zdl7CTA+hMQLDpFfzT3 2OZ7oiU16Esn4S6bt1BEDO4IOFS7Jh6tYv68YRTeArpClqEf9loVKaLv/zhshAnhy17o UduMcDG5Eds931G9A3aVICdLVshqUWq0eCLgyeBjApAdjzEUV0MI/z4uwvDdX36EejBM U0NiZg2cRYjGNcySgPWZOnaLQ6pxk/iqeKzGXrgKxEadZotEPdoMXBP/azYsoG/kpJbx tvgEVfVtp6v+gs/cGOfjF31OBVRssqRJqSbGMdiGkFu3AMpnC9m5AlKBeiHLWPJIB52O Dm1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21si12979901oti.199.2020.02.05.06.55.44; Wed, 05 Feb 2020 06:55:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727325AbgBEOyM convert rfc822-to-8bit (ORCPT + 99 others); Wed, 5 Feb 2020 09:54:12 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:44443 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727231AbgBEOyM (ORCPT ); Wed, 5 Feb 2020 09:54:12 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-224-Jt2WUK66Nai06qwrlekQ8Q-1; Wed, 05 Feb 2020 14:54:08 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 5 Feb 2020 14:54:07 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 5 Feb 2020 14:54:07 +0000 From: David Laight To: 'Wei Yang' , David Hildenbrand CC: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "linux-arm-kernel@lists.infradead.org" , "linux-ia64@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-s390@vger.kernel.org" , "linux-sh@vger.kernel.org" , "x86@kernel.org" , Andrew Morton , Oscar Salvador , Michal Hocko , Pavel Tatashin , Dan Williams Subject: RE: [PATCH v6 08/10] mm/memory_hotplug: Don't check for "all holes" in shrink_zone_span() Thread-Topic: [PATCH v6 08/10] mm/memory_hotplug: Don't check for "all holes" in shrink_zone_span() Thread-Index: AQHV3ArwACIFpMP7Tka3ET4dDeEOaKgMr2lQ Date: Wed, 5 Feb 2020 14:54:07 +0000 Message-ID: References: <20191006085646.5768-1-david@redhat.com> <20191006085646.5768-9-david@redhat.com> <20200205095924.GC24162@richard> In-Reply-To: <20200205095924.GC24162@richard> Accept-Language: en-GB, en-US Content-Language: 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-MC-Unique: Jt2WUK66Nai06qwrlekQ8Q-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Yang > Sent: 05 February 2020 09:59 ... > If it is me, I would like to take out these two similar logic out. > > For example: > > if () { > } else if () { > } else { > goto out; > } I'm pretty sure the kernel layout rules disallow 'else if'. It is also pretty horrid unless the conditionals are all related (so it is almost a switch statement). David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)