)]}'
{
  "commit": "62f384552b6756cf1ea71f8762d1e97dc77dbd90",
  "tree": "6ebd89f4f18eca1724e8a50b8fc6cdefc29de18a",
  "parents": [
    "05a3cb7dcec5a15ed9b18a5317ba2075355c7547"
  ],
  "author": {
    "name": "Joel Reardon",
    "email": "joel@clambassador.com",
    "time": "Sun May 20 21:27:11 2012 +0200"
  },
  "committer": {
    "name": "Artem Bityutskiy",
    "email": "artem.bityutskiy@linux.intel.com",
    "time": "Mon May 21 11:34:41 2012 +0300"
  },
  "message": "UBI: modify ubi_wl_flush function to clear work queue for a lnum\n\nThis patch modifies ubi_wl_flush to force the erasure of\nparticular volume id / logical eraseblock number pairs. Previous functionality\nis preserved when passing UBI_ALL for both values. The locations where ubi_wl_flush\nwere called are appropriately changed: ubi_leb_erase only flushes for the\nerased LEB, and ubi_create_volume forces only flushing for its volume id.\nExternal code can call this new feature via the new function ubi_flush() added\nto kapi.c, which simply passes through to ubi_wl_flush().\n\nThis was tested by disabling the call to do_work in ubi thread, which results\nin the work queue remaining unless explicitly called to remove. UBIFS was\nchanged to call ubifs_leb_change 50 times for four different LEBs. Then the\nnew function was called to clear the queue: passing wrong volume ids / lnum,\ncorrect ones, and finally UBI_ALL for both to ensure it was finally all\ncleard. The work queue was dumped each time and the selective removal\nof the particular LEB numbers was observed. Extra checks were enabled and\nubifs\u0027s integck was also run. Finally, the drive was repeatedly filled and\nemptied to ensure that the queue was cleared normally.\n\nArtem: amended the patch.\n\nSigned-off-by: Joel Reardon \u003creardonj@inf.ethz.ch\u003e\nSigned-off-by: Artem Bityutskiy \u003cartem.bityutskiy@linux.intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2364c00f66d0af05b8927616ea574fcbd01eb648",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/cdev.c",
      "new_id": "acec85deb6afe3dd05a5f6d6102c91b4de43d53b",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/cdev.c"
    },
    {
      "type": "modify",
      "old_id": "d76fe47477e58eedfdb0ffa89ddf1056bb7cb242",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/kapi.c",
      "new_id": "3aac1acceeb4fcd8ed2cd023d90affba328bc925",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/kapi.c"
    },
    {
      "type": "modify",
      "old_id": "38cfb0f2adf2b419a27f74c619a79d727137b7e1",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/ubi.h",
      "new_id": "a1a81c9ea8ce2a8aa7f56accfad3aa7394a51044",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/ubi.h"
    },
    {
      "type": "modify",
      "old_id": "11a28f9ce0dbada9339494d97ab4df5cf9700ccd",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/upd.c",
      "new_id": "9f2ebd8750e791fdcd450c8efa9aebd86fae7d51",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/upd.c"
    },
    {
      "type": "modify",
      "old_id": "e4b897ab45435f1c9d0519e0225bfb6c7cf15e33",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/vmt.c",
      "new_id": "0669cff8ac3c7d233e40ca6cb1c87878d7fd1457",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/vmt.c"
    },
    {
      "type": "modify",
      "old_id": "70ebfa7bc384aeb8ff65866b03317fa5291ca8f4",
      "old_mode": 33188,
      "old_path": "drivers/mtd/ubi/wl.c",
      "new_id": "9df100a4ec3886b6f6b58893f3ed772235da055e",
      "new_mode": 33188,
      "new_path": "drivers/mtd/ubi/wl.c"
    },
    {
      "type": "modify",
      "old_id": "f636f5df883fb8df129d479ac2733636a31978eb",
      "old_mode": 33188,
      "old_path": "include/linux/mtd/ubi.h",
      "new_id": "c3918a0684fe2ffc9a268eadd7e8ae473498cb37",
      "new_mode": 33188,
      "new_path": "include/linux/mtd/ubi.h"
    }
  ]
}
