)]}'
{
  "commit": "6afaf8a484cbbfd2ccf58a4e5396d1f280469789",
  "tree": "f32db3212e23a38c794df0c01fcf8505180ca51d",
  "parents": [
    "949cb6232d5fc9fa77cfa441418e12d6f9de163e"
  ],
  "author": {
    "name": "Sebastian Andrzej Siewior",
    "email": "sebastian@breakpoint.cc",
    "time": "Sun Nov 29 19:46:02 2009 +0100"
  },
  "committer": {
    "name": "Artem Bityutskiy",
    "email": "Artem.Bityutskiy@nokia.com",
    "time": "Fri Dec 04 07:47:11 2009 +0200"
  },
  "message": "UBI: flush wl before clearing update marker\n\nubiupdatevol -t does the following:\n- ubi_start_update()\n  - set_update_marker()\n  - for all LEBs ubi_eba_unmap_leb()\n  - clear_update_marker()\n  - ubi_wl_flush()\n\nubi_wl_flush() physically erases all PEB, once it returns all PEBs are\nempty. clear_update_marker() has the update marker written after return.\nIf there is a power cut between the last two functions then the UBI\nvolume has no longer the \"update\" marker set and may have some valid\nLEBs while some of them may be gone.\nIf that volume in question happens to be a UBIFS volume, then mount\nwill fail with\n\n|UBIFS error (pid 1361): ubifs_read_node: bad node type (255 but expected 6)\n|UBIFS error (pid 1361): ubifs_read_node: bad node at LEB 0:0\n|Not a node, first 24 bytes:\n|00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff\n\nif there is at least one valid LEB and the wear-leveling worker managed\nto clear LEB 0.\n\nThe patch waits for the wl worker to finish prior clearing the \"update\"\nmarker on flash. The two new LEB which are scheduled for erasing after\nclear_update_marker() should not matter because they are only visible to\nUBI.\n\nSigned-off-by: Sebastian Andrzej Siewior \u003csebastian@breakpoint.cc\u003e\nSigned-off-by: Artem Bityutskiy \u003cArtem.Bityutskiy@nokia.com\u003e\nCc: stable@kernel.org\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "74fdc40c8627b84b4bf8ab89704176b3bcc22b72",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/upd.c",
      "new_id": "c1d7b880c7953969a282969637b69f052a8454ed",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/upd.c"
    }
  ]
}
