)]}'
{
  "commit": "66450ab1dbb96ec2408ddbeccae83b234ae114b8",
  "tree": "7983a92f4d6fdba5b77897b2fd3dd7013b54116e",
  "parents": [
    "73bac2409f4eaf5eafff6ebb8b24e18c2408d68c"
  ],
  "author": {
    "name": "Mark Brown",
    "email": "broonie@kernel.org",
    "time": "Thu Apr 03 18:36:01 2025 +0100"
  },
  "committer": {
    "name": "Mark Brown",
    "email": "broonie@kernel.org",
    "time": "Fri Apr 04 14:29:34 2025 +0100"
  },
  "message": "selftests/mm: Generate a temporary mountpoint for cgroup filesystem\n\nCurrently if the filesystem for the cgroups version it wants to use is\nnot mounted charge_reserved_hugetlb.sh and hugetlb_reparenting_test.sh\ntests will attempt to mount it on the hard coded path\n/dev/cgroup/memory, deleting that directory when the test finishes. This\nwill fail if there is not a preexisting directory at that path, and\nsince the directory is deleted subsequent runs of the test will fail.\nInstead of relying on this hard coded directory name use mktemp to\ngenerate a temporary directory to use as a mountpoint, fixing both the\nassumption and the disruption caused by deleting a preexisting\ndirectory.\n\nThis means that if the relevant cgroup filesystem is not already mounted\nthen we rely on having coreutils (which provides mktemp) installed. I\nsuspect that many current users are relying on having things automounted\nby default, and given that the script relies on bash it\u0027s probably not\nan unreasonable requirement.\n\nFixes: 209376ed2a84 (\"selftests/vm: make charge_reserved_hugetlb.sh work with existing cgroup setting\")\nSigned-off-by: Mark Brown \u003cbroonie@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "67df7b47087f03a015927852045ba9c4238bbdc6",
      "old_mode": 33261,
      "old_path": "tools/testing/selftests/mm/charge_reserved_hugetlb.sh",
      "new_id": "e1fe16bcbbe880ed77e6f789b5b3efec526cea3b",
      "new_mode": 33261,
      "new_path": "tools/testing/selftests/mm/charge_reserved_hugetlb.sh"
    },
    {
      "type": "modify",
      "old_id": "11f9bbe7dc222be7672204518f13406437be8af4",
      "old_mode": 33261,
      "old_path": "tools/testing/selftests/mm/hugetlb_reparenting_test.sh",
      "new_id": "0b0d4ba1af27715bdf0335a708595f89552555d5",
      "new_mode": 33261,
      "new_path": "tools/testing/selftests/mm/hugetlb_reparenting_test.sh"
    }
  ]
}
