)]}'
{
  "commit": "56a76f8275c379ed73c8a43cfa1dfa2f5e9cfa19",
  "tree": "cbeaa82516c4818f72535b6ebe48a607cef88af4",
  "parents": [
    "c2ec175c39f62949438354f603f4aa170846aabb"
  ],
  "author": {
    "name": "Nick Piggin",
    "email": "npiggin@suse.de",
    "time": "Tue Mar 31 15:23:23 2009 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Apr 01 08:59:14 2009 -0700"
  },
  "message": "fs: fix page_mkwrite error cases in core code and btrfs\n\npage_mkwrite is called with neither the page lock nor the ptl held.  This\nmeans a page can be concurrently truncated or invalidated out from\nunderneath it.  Callers are supposed to prevent truncate races themselves,\nhowever previously the only thing they can do in case they hit one is to\nraise a SIGBUS.  A sigbus is wrong for the case that the page has been\ninvalidated or truncated within i_size (eg.  hole punched).  Callers may\nalso have to perform memory allocations in this path, where again, SIGBUS\nwould be wrong.\n\nThe previous patch (\"mm: page_mkwrite change prototype to match fault\")\nmade it possible to properly specify errors.  Convert the generic buffer.c\ncode and btrfs to return sane error values (in the case of page removed\nfrom pagecache, VM_FAULT_NOPAGE will cause the fault handler to exit\nwithout doing anything, and the fault will be retried properly).\n\nThis fixes core code, and converts btrfs as a template/example.  All other\nfilesystems defining their own page_mkwrite should be fixed in a similar\nmanner.\n\nAcked-by: Chris Mason \u003cchris.mason@oracle.com\u003e\nSigned-off-by: Nick Piggin \u003cnpiggin@suse.de\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": "ec5423790bbbec9a39bdc4528a069d3b54738456",
      "old_mode": 33188,
      "old_path": "fs/btrfs/inode.c",
      "new_id": "17e608c4dc702466900a99c1ec49dc993da2592b",
      "new_mode": 33188,
      "new_path": "fs/btrfs/inode.c"
    },
    {
      "type": "modify",
      "old_id": "6d51a3da362c9f110882374ceb22733113d24255",
      "old_mode": 33188,
      "old_path": "fs/buffer.c",
      "new_id": "0c14f8d52ee50cd86f856730110325d0e4c98eb7",
      "new_mode": 33188,
      "new_path": "fs/buffer.c"
    }
  ]
}
