)]}'
{
  "commit": "36005bae205da3eef0016a5c96a34f10a68afa1e",
  "tree": "b3201463a223eb7ec4a0bcf960696db21914566d",
  "parents": [
    "e8c26ab60598558ec3a626e7925b06e7417d7710"
  ],
  "author": {
    "name": "Tim Chen",
    "email": "tim.c.chen@linux.intel.com",
    "time": "Wed Feb 22 15:45:33 2017 -0800"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Feb 22 16:41:30 2017 -0800"
  },
  "message": "mm/swap: allocate swap slots in batches\n\nCurrently, the swap slots are allocated one page at a time, causing\ncontention to the swap_info lock protecting the swap partition on every\npage being swapped.\n\nThis patch adds new functions get_swap_pages and scan_swap_map_slots to\nrequest multiple swap slots at once.  This will reduces the lock\ncontention on the swap_info lock.  Also scan_swap_map_slots can operate\nmore efficiently as swap slots often occurs in clusters close to each\nother on a swap device and it is quicker to allocate them together.\n\nLink: http://lkml.kernel.org/r/9fec2845544371f62c3763d43510045e33d286a6.1484082593.git.tim.c.chen@linux.intel.com\nSigned-off-by: Tim Chen \u003ctim.c.chen@linux.intel.com\u003e\nSigned-off-by: \"Huang, Ying\" \u003cying.huang@intel.com\u003e\nCc: Aaron Lu \u003caaron.lu@intel.com\u003e\nCc: Andi Kleen \u003cak@linux.intel.com\u003e\nCc: Andrea Arcangeli \u003caarcange@redhat.com\u003e\nCc: Christian Borntraeger \u003cborntraeger@de.ibm.com\u003e\nCc: Dave Hansen \u003cdave.hansen@intel.com\u003e\nCc: Hillf Danton \u003chillf.zj@alibaba-inc.com\u003e\nCc: Huang Ying \u003cying.huang@intel.com\u003e\nCc: Hugh Dickins \u003chughd@google.com\u003e\nCc: Johannes Weiner \u003channes@cmpxchg.org\u003e\nCc: Jonathan Corbet \u003ccorbet@lwn.net\u003e escreveu:\nCc: Kirill A. Shutemov \u003ckirill.shutemov@linux.intel.com\u003e\nCc: Michal Hocko \u003cmhocko@kernel.org\u003e\nCc: Minchan Kim \u003cminchan@kernel.org\u003e\nCc: Rik van Riel \u003criel@redhat.com\u003e\nCc: Shaohua Li \u003cshli@kernel.org\u003e\nCc: Vladimir Davydov \u003cvdavydov.dev@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": "3116382067cd8b8bd2f754c62d2276d3c943a415",
      "old_mode": 33188,
      "old_path": "include/linux/swap.h",
      "new_id": "956eae8a8edf9769571b3f6723e273d3d82572e7",
      "new_mode": 33188,
      "new_path": "include/linux/swap.h"
    },
    {
      "type": "modify",
      "old_id": "7e888de35c41a62ade94ef7401d0c07b47943a32",
      "old_mode": 33188,
      "old_path": "mm/swapfile.c",
      "new_id": "e73b5441055b3f24b89f2e36fbf0e6171b81c940",
      "new_mode": 33188,
      "new_path": "mm/swapfile.c"
    }
  ]
}
