)]}'
{
  "commit": "f1ebcc74d5b2159f44c96b479b6eb8afc7829095",
  "tree": "83d949e151f2f7e4a980396538cc0f2356bacfd4",
  "parents": [
    "8965593e41dd2d0e2a2f1e6f245336005ea94a2c"
  ],
  "author": {
    "name": "Liu Bo",
    "email": "liubo2009@cn.fujitsu.com",
    "time": "Mon Nov 14 20:48:06 2011 -0500"
  },
  "committer": {
    "name": "Chris Mason",
    "email": "chris.mason@oracle.com",
    "time": "Tue Nov 15 09:53:28 2011 -0500"
  },
  "message": "Btrfs: fix tree corruption after multi-thread snapshots and inode_cache flush\n\nThe btrfs snapshotting code requires that once a root has been\nsnapshotted, we don\u0027t change it during a commit.\n\nBut there are two cases to lead to tree corruptions:\n\n1) multi-thread snapshots can commit serveral snapshots in a transaction,\n   and this may change the src root when processing the following pending\n   snapshots, which lead to the former snapshots corruptions;\n\n2) the free inode cache was changing the roots when it root the cache,\n   which lead to corruptions.\n\nThis fixes things by making sure we force COW the block after we create a\nsnapshot during commiting a transaction, then any changes to the roots\nwill result in COW, and we get all the fs roots and snapshot roots to be\nconsistent.\n\nSigned-off-by: Liu Bo \u003cliubo2009@cn.fujitsu.com\u003e\nSigned-off-by: Miao Xie \u003cmiaox@cn.fujitsu.com\u003e\nSigned-off-by: Chris Mason \u003cchris.mason@oracle.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0fe615e4ea387582acc06f60cac81366f23fe069",
      "old_mode": 33188,
      "old_path": "fs/btrfs/ctree.c",
      "new_id": "dede441bdeee2678225187bece170710abe1a9b4",
      "new_mode": 33188,
      "new_path": "fs/btrfs/ctree.c"
    },
    {
      "type": "modify",
      "old_id": "b9ba59ff9292559330745b8afb41eefacfbf1615",
      "old_mode": 33188,
      "old_path": "fs/btrfs/ctree.h",
      "new_id": "b1cb3c0524844872f0e15e6f4a449e193c881b47",
      "new_mode": 33188,
      "new_path": "fs/btrfs/ctree.h"
    },
    {
      "type": "modify",
      "old_id": "6a0574e923bc6a33b4965976328222dcf0a61cb0",
      "old_mode": 33188,
      "old_path": "fs/btrfs/transaction.c",
      "new_id": "81376d94cd3c6a4639ebef35df501dbefbfb2435",
      "new_mode": 33188,
      "new_path": "fs/btrfs/transaction.c"
    }
  ]
}
