1. 07 11月, 2014 3 次提交
  2. 03 10月, 2014 1 次提交
  3. 30 9月, 2014 1 次提交
  4. 26 9月, 2014 2 次提交
  5. 24 9月, 2014 1 次提交
  6. 19 9月, 2014 2 次提交
  7. 17 9月, 2014 4 次提交
  8. 16 9月, 2014 1 次提交
    • R
      UBI: add missing kmem_cache_free() in process_pool_aeb error path · 1bf1890e
      Richard Genoud 提交于
      I ran into this error after a ubiupdatevol, because I forgot to backport
      e9110361 UBI: fix the volumes tree sorting criteria.
      
      UBI error: process_pool_aeb: orphaned volume in fastmap pool
      UBI error: ubi_scan_fastmap: Attach by fastmap failed, doing a full scan!
      kmem_cache_destroy ubi_ainf_peb_slab: Slab cache still has objects
      CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.18-00053-gf05cac8dbf85 #1
      [<c000d298>] (unwind_backtrace) from [<c000baa8>] (show_stack+0x10/0x14)
      [<c000baa8>] (show_stack) from [<c01b7a68>] (destroy_ai+0x230/0x244)
      [<c01b7a68>] (destroy_ai) from [<c01b8fd4>] (ubi_attach+0x98/0x1ec)
      [<c01b8fd4>] (ubi_attach) from [<c01ade90>] (ubi_attach_mtd_dev+0x2b8/0x868)
      [<c01ade90>] (ubi_attach_mtd_dev) from [<c038b510>] (ubi_init+0x1dc/0x2ac)
      [<c038b510>] (ubi_init) from [<c0008860>] (do_one_initcall+0x94/0x140)
      [<c0008860>] (do_one_initcall) from [<c037aadc>] (kernel_init_freeable+0xe8/0x1b0)
      [<c037aadc>] (kernel_init_freeable) from [<c02730ac>] (kernel_init+0x8/0xe4)
      [<c02730ac>] (kernel_init) from [<c00093f0>] (ret_from_fork+0x14/0x24)
      UBI: scanning is finished
      
      Freeing the cache in the error path fixes the Slab error.
      
      Tested on at91sam9g35 (3.14.18+fastmap backports)
      Signed-off-by: NRichard Genoud <richard.genoud@gmail.com>
      Cc: stable <stable@vger.kernel.org> # 3.10+
      1bf1890e
  9. 29 7月, 2014 1 次提交
  10. 28 7月, 2014 3 次提交
  11. 19 7月, 2014 1 次提交
    • R
      UBI: init_volumes: Ignore volumes with no LEBs · e8c235b0
      Richard Weinberger 提交于
      UBI assumes that ubi_attach_info will only contain ubi_ainf_volume
      structures for volumes with at least one LEB.
      In scanning mode this is true because UBI can nicely create a ubi_ainf_volume
      on demand while creating the EBA table.
      
      For fastmap this is not true, the fastmap on-flash structure has a list of
      all volumes, the ubi_ainf_volume structures are created from this list.
      So it can happen that an empty volume ends up in init_volumes().
      
      We can easely deal with that by looking into ->leb_count too.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      e8c235b0
  12. 16 7月, 2014 1 次提交
  13. 01 7月, 2014 1 次提交
  14. 27 5月, 2014 1 次提交
  15. 13 5月, 2014 2 次提交
  16. 05 5月, 2014 3 次提交
  17. 16 4月, 2014 1 次提交
    • J
      block: remove struct request buffer member · b4f42e28
      Jens Axboe 提交于
      This was used in the olden days, back when onions were proper
      yellow. Basically it mapped to the current buffer to be
      transferred. With highmem being added more than a decade ago,
      most drivers map pages out of a bio, and rq->buffer isn't
      pointing at anything valid.
      
      Convert old style drivers to just use bio_data().
      
      For the discard payload use case, just reference the page
      in the bio.
      Signed-off-by: NJens Axboe <axboe@fb.com>
      b4f42e28
  18. 22 3月, 2014 1 次提交
  19. 11 3月, 2014 1 次提交
  20. 05 3月, 2014 2 次提交
  21. 04 3月, 2014 4 次提交
  22. 28 2月, 2014 1 次提交
    • E
      UBI: R/O block driver on top of UBI volumes · 9d54c8a3
      Ezequiel Garcia 提交于
      This commit introduces read-only block device emulation on top of UBI volumes.
      
      Given UBI takes care of wear leveling and bad block management it's possible
      to add a thin layer to enable block device access to UBI volumes.
      This allows to use a block-oriented filesystem on a flash device.
      
      The UBI block devices are meant to be used in conjunction with any
      regular, block-oriented file system (e.g. ext4), although it's primarily
      targeted at read-only file systems, such as squashfs.
      
      Block devices are created upon user request through new ioctls:
      UBI_IOCVOLATTBLK to attach and UBI_IOCVOLDETBLK to detach.
      Also, a new UBI module parameter is added 'ubi.block'. This parameter is
      needed in order to attach a block device on boot-up time, allowing to
      mount the rootfs on a ubiblock device.
      For instance, you could have these kernel parameters:
      
        ubi.mtd=5 ubi.block=0,0 root=/dev/ubiblock0_0
      
      Or, if you compile ubi as a module:
      
        $ modprobe ubi mtd=/dev/mtd5 block=/dev/ubi0_0
      
      Artem: amend commentaries and massage the patch a little bit.
      Signed-off-by: NEzequiel Garcia <ezequiel.garcia@free-electrons.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      9d54c8a3
  23. 04 2月, 2014 1 次提交
  24. 10 1月, 2014 1 次提交
    • Q
      UBI: avoid program operation on NOR flash after erasure interrupted · 2c7ca5cc
      Qi Wang 王起 (qiwang) 提交于
      nor_erase_prepare() will be called before erase a NOR flash, it will program '0'
      into a block to mark this block. But program data into a erasure interrupted block
      can cause program timtout(several minutes at most) error, could impact other
      operation on NOR flash. So UBIFS can read this block first to avoid unneeded
      program operation.
      
      This patch try to put read operation at head of write operation in
      nor_erase_prepare(), read out the data.
      If the data is already corrupt, then no need to program any data into this block,
      just go to erase this block.
      
      This patch is validated on Micron NOR flash, part number is:JS28F512M29EWHA
      Signed-off-by: NQi Wang <qiwang@micron.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      2c7ca5cc