Re: [PATCH] shmem: avoid huge pages for small files
From: Kirill A. Shutemov
Date: Mon Oct 17 2016 - 08:30:38 EST
On Mon, Oct 17, 2016 at 03:18:09PM +0300, Kirill A. Shutemov wrote:
> diff --git a/mm/shmem.c b/mm/shmem.c
> index ad7813d73ea7..c69047386e2f 100644
> --- a/mm/shmem.c
> +++ b/mm/shmem.c
> @@ -369,6 +369,7 @@ static bool shmem_confirm_swap(struct address_space *mapping,
> /* ifdef here to avoid bloating shmem.o when not necessary */
>
> int shmem_huge __read_mostly;
> +unsigned long long shmem_huge_min_size = HPAGE_PMD_SIZE __read_mostly;
Arghh.. Last second changes...
This should be
unsigned long long shmem_huge_min_size __read_mostly = HPAGE_PMD_SIZE;