Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp687552imm; Wed, 10 Oct 2018 02:40:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV60QH4A6WLy84VoMNZH7vautDnQuxZpY5U8hmDmgdE2QbZal/h2KuIyFTd/gre2O1CJ940Zm X-Received: by 2002:a63:26c4:: with SMTP id m187-v6mr29304136pgm.268.1539164436881; Wed, 10 Oct 2018 02:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539164436; cv=none; d=google.com; s=arc-20160816; b=X4ul60Ae7gp1RAg73QJNweCpyd95GSn7aIcK1tGgnzY3D5S15mZgZ6Ozh1IJZCwh80 dJO2D4P9UGFfmJpqthqwdJuKtpGptjOFLzbLj3rrxJLnU7FIm0p16zYQNDLKC10ZYFZm no6RWOeHZIakqPXcTwZSJ5X1edu6HEY3DvfhM5mtREgFZ2UF3uG/p3b6qydI6GkCzRw3 sazr0gnrKGrbQz2jXcQnjJsqgWPhqvtIT7nehe+4nQEHD6wZ+ClMEiIOlp6zD6ZIaJiC saeExS/S7vcQUe8TD6NOml8QEAwCr4B8AAGhuu31o9yBZ8mrnVb1oVP4F9okBtwMqT1k U93w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Q46N/Cig/LEIA9U22CIkDbnUUw9Tof6cjCzl8SQ4bKI=; b=QTJNGcZ+HKwCVNjLQBC/7NsgGdQ4YeKJ92YSRnctdat5t/vpxQQeNQRtOy8O4PAhHX qOL0WneAyNsJWvR8LgBQlJeub+hOMBylZBTMZF4bCN5le/3ftk9f+kQDALt/Fo/xswBC r6+l6l78pJ9OQGkriclG0nI0WySERnua1IlQhqNi6KuztP9Vr0GPzyiCXFUnLrX+SOM+ dAdxLAwr2gmdzFyrPJPQqNCAyJBjO5yLfDkmeb4I7SADoIV/AYiaMKiR3QLvEYWdn478 llga2eI0lWJ2Wt/U1k6+d+32Gz5yxXLxMOeaMR6UOcZOEM6lTnxe3kxpp7181x3RAb+6 ePww== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2-v6si11711984pfz.5.2018.10.10.02.40.21; Wed, 10 Oct 2018 02:40:36 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727128AbeJJRAb (ORCPT + 99 others); Wed, 10 Oct 2018 13:00:31 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53224 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727078AbeJJRAb (ORCPT ); Wed, 10 Oct 2018 13:00:31 -0400 Received: by mail-wm1-f65.google.com with SMTP id 189-v6so4706911wmw.2 for ; Wed, 10 Oct 2018 02:39:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Q46N/Cig/LEIA9U22CIkDbnUUw9Tof6cjCzl8SQ4bKI=; b=fESkw4BDZZHgGBBouii0K2zQYQMc4xfZfFfvgG/LFYNBF7AH5OLOMxLSukE/ED/z+R 8Qy1y+3m6Zct/fU+qc15ZGWtERbfRW8W5ImGkRJKrRh8HNOjVfj09NjwG3ziUGv6n5yN YvzYVAd2RSnwa70NuXCSbpToD24jAgnr1QNDIN1ZwQ9/lx1vZPsu411RrGwbbdxOOtYo 63f8thvMrceirwtvpLgFNRqFbAxI/uNH9jgMvOdlFqcnCe1jJy9bRPk92jebqHg6CWNJ nMhsW8Swt0oH/8au12HbjU0PraQdgRl52AHzB6xIkXD+o9BLv4lB93c11O6mAamZrnVo 2+MA== X-Gm-Message-State: ABuFfogn4a4cSmYb1VNJeJPHCMUVk5Vw02MdXdeTICPeoaoq3vTWYEcw Of0CpHJZw94SjgYN58ccywg= X-Received: by 2002:a1c:2dc5:: with SMTP id t188-v6mr219547wmt.94.1539164349444; Wed, 10 Oct 2018 02:39:09 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id u76-v6sm31355346wmd.10.2018.10.10.02.39.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 02:39:08 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 1D817125018; Wed, 10 Oct 2018 11:39:08 +0200 (CEST) Date: Wed, 10 Oct 2018 11:39:08 +0200 From: Oscar Salvador To: Masayoshi Mizuma Cc: linux-mm@kvack.org, Naoya Horiguchi , Pavel Tatashin , Michal Hocko , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v3 2/3] mm: return zero_resv_unavail optimization Message-ID: <20181010093908.GA20663@techadventures.net> References: <20181002143821.5112-1-msys.mizuma@gmail.com> <20181002143821.5112-3-msys.mizuma@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181002143821.5112-3-msys.mizuma@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 02, 2018 at 10:38:20AM -0400, Masayoshi Mizuma wrote: > From: Pavel Tatashin > > When checking for valid pfns in zero_resv_unavail(), it is not necessary to > verify that pfns within pageblock_nr_pages ranges are valid, only the first > one needs to be checked. This is because memory for pages are allocated in > contiguous chunks that contain pageblock_nr_pages struct pages. > > Signed-off-by: Pavel Tatashin > Reviewed-by: Masayoshi Mizuma > Acked-by: Naoya Horiguchi Looks good to me Reviewed-by: Oscar Salvador Thanks -- Oscar Salvador SUSE L3