Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp263248ybn; Thu, 3 Oct 2019 04:52:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZ7qauHYGxovgbpWknr1LO1A7yDQ4I2m80daDJZbUoUamHcXRPnryPn8r5C4zJ/i0YZR9J X-Received: by 2002:a17:906:24c8:: with SMTP id f8mr7232455ejb.119.1570103543838; Thu, 03 Oct 2019 04:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570103543; cv=none; d=google.com; s=arc-20160816; b=EKZCJnakMsziZZI7TnCMZ60YxG6DObhQICD93TGz8JESTJEoqbl3ufcYMj9eQq/oZO WybEf37CvsW8rmxyaXF74WvOS6tvzvGTBy4avLJj53Yk52Amv9NR5ua/SQESQZimuSY+ DG9Ffn+yB6WaItwdPwWjuEu7iSShKZJrRZxdaku2+jvKoo6ARGwdl5+uW2bhQHJil8hv vMaNtU2FX3FzlguJbovCK15+ORl+PkdluI9yk74KBHIz3bh6XBTiTdBEEhNeY9CIwR+U zL9Xl+/7UuhaU6wV/yL2/2htVEMD0NTpbjNliY9BJ1f1n+wbNGwpZ6EzRWZQw7WUD6X8 +klQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=4tYmUjoUlo2Xqo/y5um3PxrT1tlXAA1LkGIE6UYEn3o=; b=tcNc5VndEwsPxrDjZ1G8IqBJbsDzOCiyRDBXwN8OswMO0Rh90p4LBx+czrf8CJCIJR GD1sIAfbkUb2zqkdhTL00uvHcwuTs6JkWsdj8zx21BHmTV4tJw84giVQ+C4U0+dwR3s8 nRh1w8hoV0of62/Spd2CsBIdV5gNxt4i1hHVpPJiSwWu0zZ9nNVL3KJYeyujfp21QSto 24c7iWG+EYHCar7qmXnyD5HhYo3L9Bi2MUrYBIn5atECdQ3zjPWLn3Dv9Umh0/rwQUW0 ePM3soc0EVUTQxKiIFjJsrC9I8jJU7TTLV3fChpGVRmmrSUS4DdCBnky6ajO6/dSMCVJ aaBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=O020jbcr; 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 q5si290843ejb.174.2019.10.03.04.51.58; Thu, 03 Oct 2019 04:52:23 -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; dkim=pass header.i=@lca.pw header.s=google header.b=O020jbcr; 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 S1730286AbfJCLue (ORCPT + 99 others); Thu, 3 Oct 2019 07:50:34 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:39792 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbfJCLue (ORCPT ); Thu, 3 Oct 2019 07:50:34 -0400 Received: by mail-qt1-f194.google.com with SMTP id n7so3105080qtb.6 for ; Thu, 03 Oct 2019 04:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=4tYmUjoUlo2Xqo/y5um3PxrT1tlXAA1LkGIE6UYEn3o=; b=O020jbcrUFhT7KwwXQCB/2LZrgQ+ScGaUJxYQJ/UuGXHx2SvPAyvqKmcIkaW13VAA7 0QKaEXVjzDGCa867Z/x9JT5clpj3l07TR55z5aY6NMqDYXkRP+KsNuCA22pth51J9uRR Q4xOrykegrbfbsZjzuQfdrJEqNqNO6pdllyYbgdDDIO7sajMeLiwLk5dOylA1ZlRVKXk dnWiCVIP5y1KM7T2D8ioH6xpVZqtZddeDeGIg1VnZ7B8aytHmivwXZVq2KXEkGzHlBJ5 ZMYd5vnhGsnCRfRF1M7OLCWex4QYZzn6YSnDMRy2A58jnM5SYCgA9dEp/2GX2YvQEup7 RwuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=4tYmUjoUlo2Xqo/y5um3PxrT1tlXAA1LkGIE6UYEn3o=; b=uSNCfHZxkHETmgPXqsmCa5al6SFBtGOLtuYovXgk89TTKfnrsE6IWHvgE7vIj8nYdi Y39Uh1/G2AjQwgwB3KUShjDcP6DTXxKwmEV0wQX7X8zLHAzPQDhBrGFLJi9M6+vTcOh8 ovykJ5pHeHl1o5mdO3HSLsEcpKgGZBw8mo2shoOIAMghbAgXuMrJz4niFI2Qe47eOWtb 0jBNzzPYM1qRODjmAo+/IkczsTjDlkquHeDd9BGh0+wO2mQ0DxJCCNcOUPs4i5BtbrTp 5ynLO+IMlKs5e2eVs7C94LC423z7hTdN+6rfXL3FYTVzKV7KhM9ORxiv7meoiow09LMZ 5ylQ== X-Gm-Message-State: APjAAAWFriCCLWGX5Ylern0HS8MS/b93WYkEWjVIS8EBMtYkrj92mkYu iziQ6d6StLgsgjAQYoGMqPsM0Q== X-Received: by 2002:a0c:8867:: with SMTP id 36mr8044088qvm.177.1570103433376; Thu, 03 Oct 2019 04:50:33 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id z12sm1464699qkg.97.2019.10.03.04.50.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2019 04:50:32 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] mm/page_alloc: Add a reason for reserved pages in has_unmovable_pages() Date: Thu, 3 Oct 2019 07:50:31 -0400 Message-Id: <983E7EA4-A022-448C-B11D-8C10441A2E07@lca.pw> References: Cc: linux-mm@kvack.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Oscar Salvador , Mel Gorman , Mike Rapoport , Dan Williams , Pavel Tatashin , linux-kernel@vger.kernel.org In-Reply-To: To: Anshuman Khandual X-Mailer: iPhone Mail (17A844) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 3, 2019, at 7:31 AM, Anshuman Khandual w= rote: >=20 > Ohh, never meant that the 'Reserved' bit is anything special here but it > is a reason to make a page unmovable unlike many other flags. But dump_page() is used everywhere, and it is better to reserve =E2=80=9Crea= son=E2=80=9D to indicate something more important rather than duplicating th= e page flags. Especially, it is trivial enough right now for developers look in the page f= lags dumping from has_unmovable_pages(), and figure out the exact branching i= n the code.=