From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f199.google.com (mail-io0-f199.google.com [209.85.223.199]) by kanga.kvack.org (Postfix) with ESMTP id 6318A6B000D for ; Fri, 15 Jun 2018 19:09:08 -0400 (EDT) Received: by mail-io0-f199.google.com with SMTP id o1-v6so8464620ioa.20 for ; Fri, 15 Jun 2018 16:09:08 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 8-v6sor929266itq.38.2018.06.15.16.09.04 for (Google Transport Security); Fri, 15 Jun 2018 16:09:04 -0700 (PDT) MIME-Version: 1.0 References: <1529037793-35521-1-git-send-email-wei.w.wang@intel.com> <1529037793-35521-2-git-send-email-wei.w.wang@intel.com> In-Reply-To: <1529037793-35521-2-git-send-email-wei.w.wang@intel.com> From: Linus Torvalds Date: Sat, 16 Jun 2018 08:08:53 +0900 Message-ID: Subject: Re: [PATCH v33 1/4] mm: add a function to get free page blocks Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: wei.w.wang@intel.com Cc: virtio-dev@lists.oasis-open.org, Linux Kernel Mailing List , virtualization , KVM list , linux-mm , "Michael S. Tsirkin" , Michal Hocko , Andrew Morton , Paolo Bonzini , liliang.opensource@gmail.com, yang.zhang.wz@gmail.com, quan.xu0@gmail.com, nilal@redhat.com, Rik van Riel , peterx@redhat.com On Fri, Jun 15, 2018 at 2:08 PM Wei Wang wrote: > > This patch adds a function to get free pages blocks from a free page > list. The obtained free page blocks are hints about free pages, because > there is no guarantee that they are still on the free page list after > the function returns. Ack. This is the kind of simple interface where I don't need to worry about the MM code calling out to random drivers or subsystems. I think that "order" should be checked for validity, but from a MM standpoint I think this is fine. Linus