All of lore.kernel.org
 help / color / mirror / Atom feed
* + selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages.patch added to -mm tree
@ 2016-06-07 20:30 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-06-07 20:30 UTC (permalink / raw)
  To: mike.kravetz, emunson, shuahkh, sjayaram, mm-commits


The patch titled
     Subject: selftests/vm/compaction_test: fix write to restore nr_hugepages
has been added to the -mm tree.  Its filename is
     selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mike Kravetz <mike.kravetz@oracle.com>
Subject: 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>
---

 tools/testing/selftests/vm/compaction_test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN tools/testing/selftests/vm/compaction_test.c~selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages tools/testing/selftests/vm/compaction_test.c
--- a/tools/testing/selftests/vm/compaction_test.c~selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages
+++ a/tools/testing/selftests/vm/compaction_test.c
@@ -136,7 +136,7 @@ int check_compaction(unsigned long mem_f
 	printf("No of huge pages allocated = %d\n",
 	       (atoi(nr_hugepages)));
 
-	if (write(fd, initial_nr_hugepages, sizeof(initial_nr_hugepages))
+	if (write(fd, initial_nr_hugepages, strlen(initial_nr_hugepages))
 	    != strlen(initial_nr_hugepages)) {
 		perror("Failed to write to /proc/sys/vm/nr_hugepages\n");
 		goto close_fd;
_

Patches currently in -mm which might be from mike.kravetz@oracle.com are

mm-hugetlb-fix-huge-page-reserve-accounting-for-private-mappings.patch
selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-07 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-07 20:30 + selftests-vm-compaction_test-fix-write-to-restore-nr_hugepages.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.