)]}'
{
  "commit": "97cecb5a254fec22d28ef32235d888bfbfd7c783",
  "tree": "186c6bb9c1f999f807e2ec68dc6a0cf16c9d0d73",
  "parents": [
    "ef6a3c63112e865d632ff7c478ba7c7160cad0d1"
  ],
  "author": {
    "name": "Minchan Kim",
    "email": "minchan.kim@gmail.com",
    "time": "Tue Mar 22 16:30:53 2011 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Tue Mar 22 17:44:02 2011 -0700"
  },
  "message": "mm: introduce delete_from_page_cache()\n\nPresently we increase the page refcount in add_to_page_cache() but don\u0027t\ndecrease it in remove_from_page_cache().  Such asymmetry adds confusion,\nrequiring that callers notice it and a comment explaining why they release\na page reference.  It\u0027s not a good API.\n\nA long time ago, Hugh tried it (http://lkml.org/lkml/2004/10/24/140) but\ngave up because reiser4\u0027s drop_page() had to unlock the page between\nremoving it from page cache and doing the page_cache_release().  But now\nthe situation is changed.  I think at least things in current mainline\ndon\u0027t have any obstacles.  The problem is for out-of-mainline filesystems\n- if they have done such things as reiser4, this patch could be a problem\nbut they will discover this at compile time since we remove\nremove_from_page_cache().\n\nThis patch:\n\nThis function works as just wrapper remove_from_page_cache().  The\ndifference is that it decreases page references in itself.  So caller have\nto make sure it has a page reference before calling.\n\nThis patch is ready for removing remove_from_page_cache().\n\nSigned-off-by: Minchan Kim \u003cminchan.kim@gmail.com\u003e\nCc: Christoph Hellwig \u003chch@infradead.org\u003e\nAcked-by: Hugh Dickins \u003chughd@google.com\u003e\nAcked-by: Mel Gorman \u003cmel@csn.ul.ie\u003e\nReviewed-by: KAMEZAWA Hiroyuki \u003ckamezawa.hiroyu@jp.fujitsu.com\u003e\nReviewed-by: Johannes Weiner \u003channes@cmpxchg.org\u003e\nReviewed-by: KOSAKI Motohiro \u003ckosaki.motohiro@jp.fujitsu.com\u003e\nCc: Edward Shishkin \u003cedward.shishkin@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": "26946ad483bf812718d960956c48317fff37bf02",
      "old_mode": 33188,
      "old_path": "include/linux/pagemap.h",
      "new_id": "0aa258f4678d9acbf30475136702652120f74cb1",
      "new_mode": 33188,
      "new_path": "include/linux/pagemap.h"
    },
    {
      "type": "modify",
      "old_id": "c1459f2cdb5e50b4206f3f479a716f8f481b65c8",
      "old_mode": 33188,
      "old_path": "mm/filemap.c",
      "new_id": "e7b59785ceb9f609206598839ae97823ed9b60d6",
      "new_mode": 33188,
      "new_path": "mm/filemap.c"
    }
  ]
}
