)]}'
{
  "commit": "e8823bd63d50bb1f9bd73f1197230e1f7217456a",
  "tree": "3b8b849512686aebda99f83d290c9e09ed983967",
  "parents": [
    "6986646ba752fef150286926aa922ef04e9d19dd"
  ],
  "author": {
    "name": "Artem Bityutskiy",
    "email": "Artem.Bityutskiy@nokia.com",
    "time": "Thu Sep 13 14:28:14 2007 +0300"
  },
  "committer": {
    "name": "Artem Bityutskiy",
    "email": "Artem.Bityutskiy@nokia.com",
    "time": "Sun Oct 14 13:10:21 2007 +0300"
  },
  "message": "UBI: fix atomic LEB change problems\n\nWhen the UBI device is nearly full, i.e. all LEBs are mapped, we have\nonly one spare LEB left - the one we reserved for WL purposes. Well,\nI do not count the LEBs which were reserved for bad PEB handling -\nsuppose NOR flash for simplicity. If an \"atomic LEB change operation\"\nis run, and the WL unit is moving a LEB, we have no spare LEBs to\nfinish the operation and fail, which is not good. Moreover, if there\nare 2 or more simultanious \"atomic LEB change\" requests, only one of\nthem has chances to succeed, the other will fail with -ENOSPC. Not\ngood either.\n\nThis patch does 2 things:\n1. Reserves one PEB for the \"atomic LEB change\" operation.\n2. Serealize the operations so that only on of them may run\n   at a time (by means of a mutex).\n\nPointed-to-by: Brijesh Singh \u003cbrijesh.s.singh@gmail.com\u003e\nSigned-off-by: Artem Bityutskiy \u003cArtem.Bityutskiy@nokia.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "81bb6a33b555836a4f4bbe9d1f4cc0eb1caa66d3",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/eba.c",
      "new_id": "7b7add6da12f31aeac6fab06299e6167e981f46a",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/eba.c"
    },
    {
      "type": "modify",
      "old_id": "cc010111264f5cb7c00d781009d9d9e8a809206a",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/ubi.h",
      "new_id": "5e941a6330303bc36271286a7861c4fdd5f63788",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/ubi.h"
    }
  ]
}
