From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 968946B0038 for ; Mon, 12 Sep 2016 06:02:05 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id g141so55291345wmd.0 for ; Mon, 12 Sep 2016 03:02:05 -0700 (PDT) Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com. [2a00:1450:4010:c07::243]) by mx.google.com with ESMTPS id w197si6370853lfd.282.2016.09.12.03.02.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Sep 2016 03:02:04 -0700 (PDT) Received: by mail-lf0-x243.google.com with SMTP id l131so5632143lfl.0 for ; Mon, 12 Sep 2016 03:02:04 -0700 (PDT) Date: Mon, 12 Sep 2016 13:02:01 +0300 From: "Kirill A. Shutemov" Subject: Re: [PATCH 2/2] shmem: call __thp_get_unmapped_area to alloc a pmd-aligned addr Message-ID: <20160912100201.GB23346@node.shutemov.name> References: <1473459863-11287-1-git-send-email-toshi.kani@hpe.com> <1473459863-11287-3-git-send-email-toshi.kani@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473459863-11287-3-git-send-email-toshi.kani@hpe.com> Sender: owner-linux-mm@kvack.org List-ID: To: Toshi Kani Cc: akpm@linux-foundation.org, dan.j.williams@intel.com, mawilcox@microsoft.com, hughd@google.com, kirill.shutemov@linux.intel.com, linux-nvdimm@lists.01.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org On Fri, Sep 09, 2016 at 04:24:23PM -0600, Toshi Kani wrote: > shmem_get_unmapped_area() provides a functionality similar > to __thp_get_unmapped_area() as both allocate a pmd-aligned > address. > > Change shmem_get_unmapped_area() to do shm-specific checks > and then call __thp_get_unmapped_area() for allocating > a pmd-aligned address. > > link: https://lkml.org/lkml/2016/8/29/620 > Suggested-by: Kirill A. Shutemov > Signed-off-by: Toshi Kani > Cc: Andrew Morton > Cc: Kirill A. Shutemov > Cc: Hugh Dickins > Cc: Matthew Wilcox > Cc: Dan Williams Looks good to me. Thanks. Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org