mm: thp: correct split_huge_pages file permission
authorYang Shi <yang.shi@linaro.org>
Thu, 5 May 2016 23:22:00 +0000 (16:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 May 2016 00:38:53 +0000 (17:38 -0700)
commit145bdaa1501bf1c8a6cfa8ea5e347b9a46aad1b7
treec05c70f30e9aa283e290eb8a29457067d536cc5b
parentc5e0666c5a3ccabdf16bb88451886cdf81849b66
mm: thp: correct split_huge_pages file permission

split_huge_pages doesn't support get method at all, so the read
permission sounds confusing, change the permission to write only.

And, add "\n" to the output of set method to make it more readable.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c
This page took 0.024668 seconds and 5 git commands to generate.