)]}'
{
  "commit": "ff691f6e03815dc8f99461ea509df863a879fc3a",
  "tree": "acc3b3c61ff40365d15cbe89952c743b301016af",
  "parents": [
    "3ea7f5e25ec271909451b7dc17be37581b888de6"
  ],
  "author": {
    "name": "Heinrich Schuchardt",
    "email": "xypron.glpk@gmx.de",
    "time": "Thu Apr 16 12:47:44 2015 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Fri Apr 17 09:04:06 2015 -0400"
  },
  "message": "kernel/fork.c: new function for max_threads\n\nPAGE_SIZE is not guaranteed to be equal to or less than 8 times the\nTHREAD_SIZE.\n\nE.g.  architecture hexagon may have page size 1M and thread size 4096.\nThis would lead to a division by zero in the calculation of max_threads.\n\nWith this patch the buggy code is moved to a separate function\nset_max_threads.  The error is not fixed.\n\nAfter fixing the problem in a separate patch the new function can be\nreused to adjust max_threads after adding or removing memory.\n\nArgument mempages of function fork_init() is removed as totalram_pages is\nan exported symbol.\n\nThe creation of separate patches for refactoring to a new function and for\nfixing the logic was suggested by Ingo Molnar.\n\nSigned-off-by: Heinrich Schuchardt \u003cxypron.glpk@gmx.de\u003e\nCc: Oleg Nesterov \u003coleg@redhat.com\u003e\nCc: Ingo Molnar \u003cmingo@kernel.org\u003e\nCc: Guenter Roeck \u003clinux@roeck-us.net\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": "a7e969d12f51a8a629f74d7bf10920ea7fef967b",
      "old_mode": 33188,
      "old_path": "init/main.c",
      "new_id": "2115055faeac948bd164c9e8d574795f557f02a5",
      "new_mode": 33188,
      "new_path": "init/main.c"
    },
    {
      "type": "modify",
      "old_id": "c507e29bcb01b44e59bfb134fdae768827ea019e",
      "old_mode": 33188,
      "old_path": "kernel/fork.c",
      "new_id": "01038e6f51a8d026dbc108c360b627af1fb55a9d",
      "new_mode": 33188,
      "new_path": "kernel/fork.c"
    }
  ]
}
