Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1128921imu; Thu, 20 Dec 2018 10:34:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/VDIAN+FkYPvZvYJJ96s6ya0ZzBX3Ht5M1CTrZfKay0KzlnqeEb4Xb6EJc0GunGo9Of7Bau X-Received: by 2002:a63:f30d:: with SMTP id l13mr7632320pgh.399.1545330864420; Thu, 20 Dec 2018 10:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545330864; cv=none; d=google.com; s=arc-20160816; b=MY7lUMFjMuu/5yoK9EMeYmKQF9idhQ69DJoUwqQnkvTMg/1sZ5QOLJEBO03pw34Nuj qEni7HzbmC51qdTTq2asySXQyulvFNNmbcSD5X+hTbgAeXXxJBZM0lAw1GlUlZXCuuxV km28/2qM301MBRc4f2q2S0CW3lRjgkHaLv5tlXrnCtRWPauheuZQEfDA/4ba1WzgUPHO 81TXeDJpbGWXR27Ils3qkCai3Bdl/8zBQ3KyQ4l0VMZE1f2z00TLfLw7vFWjCJqdwYON A2uxXN9p9xQdZxE6s1FTPiPIEbY++FFG3+FicypF+HiEoJlU0+ybX5JezYM6AS9lpCuK CQrA== 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=IvCshz3DZmXUh58hMWBxIqiqetoAaVu+CvRffU13CLs=; b=m24hhJ7leQ0rCC5rgJVP4m9wPDcEWQZ1gTgwH6xZ55bUOTD10HzAXRZKj/egXQH7KT U6ZxcO+IUAYt+RXO7LtHruxwUeH85qXu17dgvUJaGGNBiRmmkRmOvswoQ6THO0UnuGMi 8/lW9LyoJWGS58+IbcWiOErgqaV3NQmXHZiRFb0tkrO5Y8BPQghX1Ane+CAbWa51ynBI iVUoj2xg9OB1RkxoQ/cTIsSYOIu3u2S8Dx+seKUH50KhyVDWYEj0VPtO3NUdztR+P+nF DW0z3WQ1URk1LAf7MamlTVeE0ZyN+2i8gyemPTvIpfkdmnXzwoZN0R9siYGjN3Evl5RG AOtQ== 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 d17si1351818pfm.40.2018.12.20.10.34.09; Thu, 20 Dec 2018 10:34:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387850AbeLTPhh (ORCPT + 99 others); Thu, 20 Dec 2018 10:37:37 -0500 Received: from charybdis-ext.suse.de ([195.135.221.2]:21847 "EHLO suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729447AbeLTPhh (ORCPT ); Thu, 20 Dec 2018 10:37:37 -0500 Received: by suse.de (Postfix, from userid 1000) id 09C8A3CAF; Thu, 20 Dec 2018 16:37:34 +0100 (CET) Date: Thu, 20 Dec 2018 16:37:34 +0100 From: Oscar Salvador To: Michal Hocko Cc: Wei Yang , akpm@linux-foundation.org, vbabka@suse.cz, pavel.tatashin@microsoft.com, rppt@linux.vnet.ibm.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages Message-ID: <20181220153731.mpc757cyf2zyr6fm@d104.suse.de> References: <20181217225113.17864-1-osalvador@suse.de> <20181219142528.yx6ravdyzcqp5wtd@master> <20181219233914.2fxe26pih26ifvmt@d104.suse.de> <20181220091228.GB14234@dhcp22.suse.cz> <20181220124925.itwuuacgztpgsk7s@d104.suse.de> <20181220130606.GG9104@dhcp22.suse.cz> <20181220134132.6ynretwlndmyupml@d104.suse.de> <20181220142124.r34fnuv6b33luj5a@d104.suse.de> <20181220143939.GA6210@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181220143939.GA6210@dhcp22.suse.cz> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 20, 2018 at 03:39:39PM +0100, Michal Hocko wrote: > Yes, you are missing that this code should be as sane as possible ;) You > are right that we are only processing one pageorder worth of pfns and > that the page order is bound to HUGETLB_PAGE_ORDER _right_now_. But > there is absolutely zero reason to hardcode that assumption into a > simple loop, right? Of course, it makes sense to keep the code as sane as possible. This is why I said I was not against the change, but I wanted to see if I was missing something else besides the assumption. Thanks -- Oscar Salvador SUSE L3