Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481109

Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly

From "Kirill A. Shutemov" <kirill@shutemov.name>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly
Date 2016-09-12 12:10 +0200
Message-ID <sgwlz-1OL-27@gated-at.bofh.it> (permalink)
References <sfCt3-jt-3@gated-at.bofh.it> <sfCt3-jt-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 09, 2016 at 04:24:22PM -0600, Toshi Kani wrote:
> shmem_get_unmapped_area() checks SHMEM_SB(sb)->huge incorrectly,
> which leads to a reversed effect of "huge=" mount option.
> 
> Fix the check in shmem_get_unmapped_area().
> 
> Note, the default value of SHMEM_SB(sb)->huge remains as
> SHMEM_HUGE_NEVER.  User will need to specify "huge=" option to
> enable huge page mappings.
> 
> Reported-by: Hillf Danton <hillf.zj@alibaba-inc.com>
> Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> Cc: Hugh Dickins <hughd@google.com>

Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>

-- 
 Kirill A. Shutemov

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] refactor shmem_get_unmapped_area() Toshi Kani <toshi.kani@hpe.com> - 2016-09-10 00:30 +0200
  [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly Toshi Kani <toshi.kani@hpe.com> - 2016-09-10 00:30 +0200
    Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-09-12 12:10 +0200
    Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-09-22 13:00 +0200
      Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option  properly Hugh Dickins <hughd@google.com> - 2016-09-23 04:40 +0200

csiph-web