)]}'
{
  "commit": "4498f4779f0495dbe4491bb005cf095d8ba73f0e",
  "tree": "4991892c4253020ddf43243aada6242c73872363",
  "parents": [
    "8d122fe6156d38206d3e84999a9a87f52dbe9447"
  ],
  "author": {
    "name": "Josef Bacik",
    "email": "josef@toxicpanda.com",
    "time": "Mon Mar 02 13:14:13 2020 -0500"
  },
  "committer": {
    "name": "Josef Bacik",
    "email": "josef@toxicpanda.com",
    "time": "Mon Mar 02 13:14:13 2020 -0500"
  },
  "message": "btrfs: remove a BUG_ON() from merge_reloc_roots()\n\nThis was pretty subtle, we default to reloc roots having 0 root refs, so\nif we crash in the middle of the relocation they can just be deleted.\nIf we successfully complete the relocation operations we\u0027ll set our root\nrefs to 1 in prepare_to_merge() and then go on to merge_reloc_roots().\n\nAt prepare_to_merge() time if any of the reloc roots have a 0 reference\nstill, we will remove that reloc root from our reloc root rb tree, and\nthen clean it up later.\n\nHowever this only happens if we successfully start a transaction.  If\nwe\u0027ve aborted previously we will skip this step completely, and only\nhave reloc roots with a reference count of 0, but were never properly\nremoved from the reloc control\u0027s rb tree.\n\nThis isn\u0027t a problem per-se, our references are held by the list the\nreloc roots are on, and by the original root the reloc root belongs to.\nIf we end up in this situation all the reloc roots will be added to the\ndirty_reloc_list, and then properly dropped at that point.  The reloc\ncontrol will be free\u0027d and the rb tree is no longer used.\n\nThere were two options when fixing this, one was to remove the BUG_ON(),\nthe other was to make prepare_to_merge() handle the case where we\ncouldn\u0027t start a trans handle.\n\nIMO this is the cleaner solution.  I started with handling the error in\nprepare_to_merge(), but it turned out super ugly.  And in the end this\nBUG_ON() simply doesn\u0027t matter, the cleanup was happening properly, we\nwere just panicing because this BUG_ON() only matters in the success\ncase.  So I\u0027ve opted to just remove it and add a comment where it was.\n\nSigned-off-by: Josef Bacik \u003cjosef@toxicpanda.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c8ff289306779c725c207676e17e43419ad3c270",
      "old_mode": 33188,
      "old_path": "fs/btrfs/relocation.c",
      "new_id": "387b0e7f137200ada4b79155725adae339b82baf",
      "new_mode": 33188,
      "new_path": "fs/btrfs/relocation.c"
    }
  ]
}
