]> 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)
commit8821b3fb1e38e1bfb04a310256e5908aba24b585
treec05c70f30e9aa283e290eb8a29457067d536cc5b
parent6f0d4db3496490aada8e11fd4f7bf26b5f89f933
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