Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4497573ybl; Mon, 13 Jan 2020 14:58:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxDNxJe9mhO3OXUkNHd/ouhjWQabmg+xe2XfpS2oYYqVzurdBrcfb5omjq8IVaQR78bchcZ X-Received: by 2002:a54:488d:: with SMTP id r13mr13971534oic.115.1578956336179; Mon, 13 Jan 2020 14:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578956336; cv=none; d=google.com; s=arc-20160816; b=QvV7Ox+QStrqLolmU6+G9BHt2DVaHQPJY69YrsoTASmIobaKgqA8aA9EXlGlYt3Eip PqPhA0VNtuUrmy1HbOOmtRgZRJKbiz/pv3R9/sHiC024aIcyvhPu5wXbazO8Xi0IUVa3 3o5yd28TUDqRAkqEw5uHJEKfvwOmVlxtINoRh6EU+HbYuxoJ6QDrXc4sQiP+CtJ//OV5 aZYiVc3tIt/56mhpHj4vQWsOpQVJuXpHn/lCKKDzbAti+smraUXsi5gBuUseukG2a+Rt HCdR/D2DW5G64PScUVM4HZZgU/ByDgD2X+d9dJrMlzJRne6wQnC+f+uxDKr5PMHExErd IcCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic:to:in-reply-to :cc:references:message-id:date:subject:mime-version:from :content-transfer-encoding:dkim-signature; bh=IQCOGbh+bMqXrPS+qToZ71MmwbqD2csN/FzB8tydSE4=; b=UZebsfGOdwYqaInM3UigVtNqKsNg1yh922CGw4YO9HJDwfATaaGTSf9NGQiG8ZvNWa hq8KRLW2bOD/Ef9PUQk4ADOD8RhTK4hGE1Z0IXWTsQai4SeO9lbZdsL2CmYs7ecL2JQ1 UnVMb8S2lYFpKQQsLCzzaihmIEdgs0/qGZOl+YG3yzpP0WqCTAUOZCUuRniNqjeY5Whi lZK6zRVd0ZOk5Eu7dJzE6at/h2S3RLQWfd27aIKdZpJs7womZ4AeEI6CJaqL0ZVXS86C JIatZfI+wsTUJhUw1hxzwfd5/eX63f9JEWqrKs+q3TsxvyOlatGw8lFTXUIQ8xFJevWG GMbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OZDoe8kH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si9943988otr.319.2020.01.13.14.58.44; Mon, 13 Jan 2020 14:58:56 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OZDoe8kH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729110AbgAMW5T (ORCPT + 99 others); Mon, 13 Jan 2020 17:57:19 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:21945 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728833AbgAMW5T (ORCPT ); Mon, 13 Jan 2020 17:57:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578956237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IQCOGbh+bMqXrPS+qToZ71MmwbqD2csN/FzB8tydSE4=; b=OZDoe8kHDTFBLgq/XL48nEaCm45BxCsJ1oDwdkY28RPi48dSADNhBONBixnWHpriZUoUT/ qApREG/8XX/apOQkSY4ScQKEp1OpAHPvD20QgyAW6aSb3Nk3RPxLnREMS3maLEFzp9Xln5 O4UPpr+G7+C6rKRR8Ge9c2MmyDLo6FA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-364-cG5FGFRxN6uisPMJ3xaI_g-1; Mon, 13 Jan 2020 17:57:14 -0500 X-MC-Unique: cG5FGFRxN6uisPMJ3xaI_g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C50518024D3; Mon, 13 Jan 2020 22:57:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AAEEB811E0; Mon, 13 Jan 2020 22:57:12 +0000 (UTC) Received: from zmail19.collab.prod.int.phx2.redhat.com (zmail19.collab.prod.int.phx2.redhat.com [10.5.83.22]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 814B4503DA; Mon, 13 Jan 2020 22:57:12 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 From: David Hildenbrand MIME-Version: 1.0 Subject: Re: [PATCH v1 2/2] mm: factor out next_present_section_nr() Date: Mon, 13 Jan 2020 17:57:12 -0500 (EST) Message-Id: <0B77E39C-BD38-4A61-AB28-3578B519952F@redhat.com> References: <20200113224155.efoekgw4hyey2by2@box> Cc: David Hildenbrand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Michal Hocko , Oscar Salvador In-Reply-To: <20200113224155.efoekgw4hyey2by2@box> To: "Kirill A. Shutemov" Thread-Topic: factor out next_present_section_nr() Thread-Index: KOJuedPw6AHzUiVonlt4OpFWR8o9Jw== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gQW0gMTMuMDEuMjAyMCB1bSAyMzo0MSBzY2hyaWViIEtpcmlsbCBBLiBTaHV0ZW1vdiA8 a2lyaWxsQHNodXRlbW92Lm5hbWU+Og0KPiANCj4g77u/T24gTW9uLCBKYW4gMTMsIDIwMjAgYXQg MDM6NDA6MzVQTSArMDEwMCwgRGF2aWQgSGlsZGVuYnJhbmQgd3JvdGU6DQo+PiBMZXQncyBtb3Zl IGl0IHRvIHRoZSBoZWFkZXIgYW5kIHVzZSB0aGUgc2hvcnRlciB2YXJpYW50IGZyb20NCj4+IG1t L3BhZ2VfYWxsb2MuYyAodGhlIG9yaWdpbmFsIG9uZSB3aWxsIGFsc28gY2hlY2sNCj4+ICJfX2hp Z2hlc3RfcHJlc2VudF9zZWN0aW9uX25yICsgMSIsIHdoaWNoIGlzIG5vdCBuZWNlc3NhcnkpLiBX aGlsZSBhdCBpdCwNCj4+IG1ha2UgdGhlIHNlY3Rpb25fbnIgaW4gbmV4dF9wZm4oKSBjb25zdC4N Cj4+IA0KPj4gSW4gbmV4dF9wZm4oKSwgd2Ugbm93IHJldHVybiBzZWN0aW9uX25yX3RvX3Bmbigt MSkgaW5zdGVhZCBvZiAtMSBvbmNlDQo+PiB3ZSBleGNlZWQgX19oaWdoZXN0X3ByZXNlbnRfc2Vj dGlvbl9uciwgd2hpY2ggZG9lc24ndCBtYWtlIGEgZGlmZmVyZW5jZSBpbg0KPj4gdGhlIGNhbGxl ciBhcyBpdCBpcyBiaWcgZW5vdWdoICg+PSBhbGwgc2FuZSBlbmRfcGZuKS4NCj4+IA0KPj4gQ2M6 IEFuZHJldyBNb3J0b24gPGFrcG1AbGludXgtZm91bmRhdGlvbi5vcmc+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