)]}'
{
  "commit": "d5b6f6a3610b05e6712cb9c61a85a6dff16e91cf",
  "tree": "d5899d3a64bc6232a7c2112fe614a97f86482446",
  "parents": [
    "b9ff036082cd1793a59b35c4432644fe44620664"
  ],
  "author": {
    "name": "Oscar Salvador",
    "email": "osalvador@suse.de",
    "time": "Fri Aug 17 15:46:18 2018 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Fri Aug 17 16:20:29 2018 -0700"
  },
  "message": "mm/memory_hotplug.c: call register_mem_sect_under_node()\n\nWhen hotplugging memory, it is possible that two calls are being made to\nregister_mem_sect_under_node().\n\nOne comes from __add_section()-\u003ehotplug_memory_register() and the other\nfrom add_memory_resource()-\u003elink_mem_sections() if we had to register a\nnew node.\n\nIn case we had to register a new node, hotplug_memory_register() will\nonly handle/allocate the memory_block\u0027s since\nregister_mem_sect_under_node() will return right away because the node\nit is not online yet.\n\nI think it is better if we leave hotplug_memory_register() to\nhandle/allocate only memory_block\u0027s and make link_mem_sections() to call\nregister_mem_sect_under_node().\n\nSo this patch removes the call to register_mem_sect_under_node() from\nhotplug_memory_register(), and moves the call to link_mem_sections() out\nof the condition, so it will always be called.  In this way we only have\none place where the memory sections are registered.\n\nLink: http://lkml.kernel.org/r/20180622111839.10071-3-osalvador@techadventures.net\nSigned-off-by: Oscar Salvador \u003cosalvador@suse.de\u003e\nReviewed-by: Pavel Tatashin \u003cpasha.tatashin@oracle.com\u003e\nTested-by: Reza Arbab \u003carbab@linux.vnet.ibm.com\u003e\nTested-by: Jonathan Cameron \u003cJonathan.Cameron@huawei.com\u003e\nCc: Pasha Tatashin \u003cPavel.Tatashin@microsoft.com\u003e\nCc: Michal Hocko \u003cmhocko@suse.com\u003e\nCc: Vlastimil Babka \u003cvbabka@suse.cz\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": "f5e560188a18933bc58dcd923d59381bd856d12f",
      "old_mode": 33188,
      "old_path": "drivers/base/memory.c",
      "new_id": "c8a1cb0b61361f63088ecb940c0ca8dc7dee67cf",
      "new_mode": 33188,
      "new_path": "drivers/base/memory.c"
    },
    {
      "type": "modify",
      "old_id": "504ba120bdfc7ee803e99a8f67870fb7f0ff54c0",
      "old_mode": 33188,
      "old_path": "mm/memory_hotplug.c",
      "new_id": "e2ed64b994e5b04eef1501e1c4f0e449b8f420ef",
      "new_mode": 33188,
      "new_path": "mm/memory_hotplug.c"
    }
  ]
}
