]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca1e7bba1ba4c46bdf419940b7492a1673f0aff4
treec05c70f30e9aa283e290eb8a29457067d536cc5b
parent344eac45944dd198a9588237c11b6bae61d1df60
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