)]}'
{
  "commit": "f0f57b2b1488251970c25deea0ea150a8d0911ed",
  "tree": "6a1021691892c6bfa6c7471861b87eb72cd1be1a",
  "parents": [
    "63e315535abe0d820d0e3db4c06bc5de74aeefc8"
  ],
  "author": {
    "name": "Dave Young",
    "email": "dyoung@redhat.com",
    "time": "Wed Mar 28 14:42:56 2012 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Mar 28 17:14:37 2012 -0700"
  },
  "message": "mm: move hugepage test examples to tools/testing/selftests/vm\n\nhugepage-mmap.c, hugepage-shm.c and map_hugetlb.c in Documentation/vm are\nsimple pass/fail tests, It\u0027s better to promote them to\ntools/testing/selftests.\n\nThanks suggestion of Andrew Morton about this.  They all need firstly\nsetting up proper nr_hugepages and hugepage-mmap need to mount hugetlbfs.\nSo I add a shell script run_vmtests to do such work which will call the\nthree test programs and check the return value of them.\n\nChanges to original code including below:\na. add run_vmtests script\nb. return error when read_bytes mismatch with writed bytes.\nc. coding style fixes: do not use assignment in if condition\n\n[akpm@linux-foundation.org: build the targets before trying to execute them]\n[akpm@linux-foundation.org: Documentation/vm/ no longer has a Makefile. Fixes \"make clean\"]\nSigned-off-by: Dave Young \u003cdyoung@redhat.com\u003e\nCc: Wu Fengguang \u003cfengguang.wu@intel.com\u003e\nCc: Christoph Lameter \u003ccl@linux.com\u003e\nCc: Pekka Enberg \u003cpenberg@cs.helsinki.fi\u003e\nCc: Frederic Weisbecker \u003cfweisbec@gmail.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9b4bc5c76f335341d568062d1f4034ec530458a7",
      "old_mode": 33188,
      "old_path": "Documentation/Makefile",
      "new_id": "30b656ece7aaed21076daa92d865ad472f607e22",
      "new_mode": 33188,
      "new_path": "Documentation/Makefile"
    },
    {
      "type": "delete",
      "old_id": "e538864bfc634f2f03b4fa701f86190b97ce88e5",
      "old_mode": 33188,
      "old_path": "Documentation/vm/Makefile",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "9203cd77fc330c4414092f1244c2b34be3a89aa3",
      "old_mode": 33188,
      "old_path": "tools/testing/selftests/Makefile",
      "new_id": "28bc57ee757cf04d7b2166dc3e4b236b5fd19de6",
      "new_mode": 33188,
      "new_path": "tools/testing/selftests/Makefile"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b336b24aa6c0f6b4011315d20a7227afacf20e49",
      "new_mode": 33188,
      "new_path": "tools/testing/selftests/vm/Makefile"
    },
    {
      "type": "rename",
      "old_id": "db0dd9a33d549387d301790af8339d3d1b106264",
      "old_mode": 33188,
      "old_path": "Documentation/vm/hugepage-mmap.c",
      "new_id": "a10f310d2362ffa5dc869784d928189373a8d68a",
      "new_mode": 33188,
      "new_path": "tools/testing/selftests/vm/hugepage-mmap.c",
      "score": 93
    },
    {
      "type": "rename",
      "old_id": "07956d8592c95f6fd6253bfc5a3725cd5c84a8ca",
      "old_mode": 33188,
      "old_path": "Documentation/vm/hugepage-shm.c",
      "new_id": "0d0ef4fc0c0474c905974f53be6e5bd9ea62edfe",
      "new_mode": 33188,
      "new_path": "tools/testing/selftests/vm/hugepage-shm.c",
      "score": 93
    },
    {
      "type": "rename",
      "old_id": "eda1a6d3578ab64a99931b716ab164841d8de310",
      "old_mode": 33188,
      "old_path": "Documentation/vm/map_hugetlb.c",
      "new_id": "ac56639dd4a9435a84734b6990dab15dde6f4309",
      "new_mode": 33188,
      "new_path": "tools/testing/selftests/vm/map_hugetlb.c",
      "score": 94
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8b40bd5e5cc2554d104cb0ba5d03ac949e918c68",
      "new_mode": 33188,
      "new_path": "tools/testing/selftests/vm/run_vmtests"
    }
  ]
}
