]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/vm/compaction_test: fix write to restore nr_hugepages
authorMike Kravetz <mike.kravetz@oracle.com>
Fri, 24 Jun 2016 21:48:40 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Jun 2016 00:23:52 +0000 (17:23 -0700)
commite578548391bd0a3950866b9276ed6a772b4a2d67
treef077b8755dc655d1d95f4ad44d425cc2d92fdb4c
parentbd0188f91c7262821f79dbd2f34cc21922f34de2
selftests/vm/compaction_test: fix write to restore nr_hugepages

The write at the end of the test to restore nr_hugepages to its previous
value is failing.  This is because it is trying to write the number of
bytes in the char array as opposed to the number of bytes in the string.

Link: http://lkml.kernel.org/r/1465331205-3284-1-git-send-email-mike.kravetz@oracle.com
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Sri Jayaramappa <sjayaram@akamai.com>
Cc: Eric B Munson <emunson@akamai.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/compaction_test.c