1. 28 1月, 2015 1 次提交
  2. 07 11月, 2014 2 次提交
  3. 30 9月, 2014 1 次提交
  4. 26 9月, 2014 1 次提交
  5. 24 9月, 2014 1 次提交
  6. 29 7月, 2014 1 次提交
  7. 05 5月, 2014 2 次提交
  8. 04 10月, 2013 1 次提交
  9. 19 8月, 2013 1 次提交
  10. 10 12月, 2012 1 次提交
  11. 04 12月, 2012 2 次提交
  12. 30 11月, 2012 1 次提交
  13. 03 10月, 2012 2 次提交
  14. 04 9月, 2012 2 次提交
    • A
      UBI: print less · 719bb840
      Artem Bityutskiy 提交于
      UBI currently prints a lot of information when it mounts a volume, which
      bothers some people. Make it less chatty - print only important information
      by default.
      
      Get rid of 'dbg_msg()' macro completely.
      Reported-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      719bb840
    • S
      UBI: limit amount of reserved eraseblocks for bad PEB handling · 37f758a0
      Shmulik Ladkani 提交于
      The existing mechanism of reserving PEBs for bad PEB handling has two
      flaws:
      - It is calculated as a percentage of good PEBs instead of total PEBs.
      - There's no limit on the amount of PEBs UBI reserves for future bad
        eraseblock handling.
      
      This patch changes the mechanism to overcome these flaws.
      
      The desired level of PEBs reserved for bad PEB handling (beb_rsvd_level)
      is set to the maximum expected bad eraseblocks (bad_peb_limit) minus the
      existing number of bad eraseblocks (bad_peb_count).
      
      The actual amount of PEBs reserved for bad PEB handling is usually set
      to the desired level (but in some circumstances may be lower than the
      desired level, e.g. when attaching to a device that has too few
      available PEBs to satisfy the desired level).
      
      In the case where the device has too many bad PEBs (above the expected
      limit), then the desired level, and the actual amount of PEBs reserved
      are set to zero. No PEBs will be set aside for future bad eraseblock
      handling - even if some PEBs are made available (e.g. by shrinking a
      volume).
      If another PEB goes bad, and there are available PEBs, then the
      eraseblock will be marked bad (consuming one available PEB). But if
      there are no available PEBs, ubi will go into readonly mode.
      Signed-off-by: NShmulik Ladkani <shmulik.ladkani@gmail.com>
      37f758a0
  15. 07 6月, 2012 1 次提交
    • A
      UBI: correct ubi_wl_flush locking · 12027f1b
      Artem Bityutskiy 提交于
      Commit "62f38455 UBI: modify ubi_wl_flush function to clear work queue for a lnum"
      takes the 'work_sem' semaphore in write mode for the entire loop, which is not
      very good because it will block other workers for potentially long time. We do
      not need to have it in write mode - read mode is enough, and we do not need to
      hole it over the entire loop. So this patch turns changes the locking: takes
      'work_sem' in read mode and pushes it down to the loop.
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      12027f1b
  16. 21 5月, 2012 15 次提交
    • J
      UBI: modify ubi_wl_flush function to clear work queue for a lnum · 62f38455
      Joel Reardon 提交于
      This patch modifies ubi_wl_flush to force the erasure of
      particular volume id / logical eraseblock number pairs. Previous functionality
      is preserved when passing UBI_ALL for both values. The locations where ubi_wl_flush
      were called are appropriately changed: ubi_leb_erase only flushes for the
      erased LEB, and ubi_create_volume forces only flushing for its volume id.
      External code can call this new feature via the new function ubi_flush() added
      to kapi.c, which simply passes through to ubi_wl_flush().
      
      This was tested by disabling the call to do_work in ubi thread, which results
      in the work queue remaining unless explicitly called to remove. UBIFS was
      changed to call ubifs_leb_change 50 times for four different LEBs. Then the
      new function was called to clear the queue: passing wrong volume ids / lnum,
      correct ones, and finally UBI_ALL for both to ensure it was finally all
      cleard. The work queue was dumped each time and the selective removal
      of the particular LEB numbers was observed. Extra checks were enabled and
      ubifs's integck was also run. Finally, the drive was repeatedly filled and
      emptied to ensure that the queue was cleared normally.
      
      Artem: amended the patch.
      Signed-off-by: NJoel Reardon <reardonj@inf.ethz.ch>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      62f38455
    • J
      UBI: add lnum and vol_id to struct ubi_work · d36e59e6
      Joel Reardon 提交于
      This is part of a multipart patch to allow UBI to force the erasure of
      particular logical eraseblock numbers. In this patch, the volume id and LEB
      number are added to ubi_work data structure, and both are also passed as a
      parameter to schedule erase to set it appropriately. Whenever ubi_wl_put_peb
      is called, the lnum is also passed to be forwarded to schedule erase. Later,
      a new ubi_sync_lnum will be added to execute immediately all work related to
      that lnum.
      
      This was tested by outputting the vol_id and lnum during the schedule of
      erasure. The ubi thread was disabled and two ubifs drives on separate
      partitions repeated changed a small number of LEBs. The ubi module was readded,
      and all the erased LEBs, corresponding to the volumes, were added to the
      schedule erase queue.
      
      Artem: minor tweaks
      Signed-off-by: NJoel Reardon <reardonj@inf.ethz.ch>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      d36e59e6
    • A
      UBI: rename _init_scan functions · 41e0cd9d
      Artem Bityutskiy 提交于
      We have a couple of initialization funcntionsn left which have "_scan" suffic -
      rename them:
      
      ubi_eba_init_scan() -> ubi_eba_init()
      ubi_wl_init_scan() -> ubi_wl_init()
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      41e0cd9d
    • A
      UBI: rename sv to av · 517af48c
      Artem Bityutskiy 提交于
      After re-naming the 'struct ubi_scan_volume' we should adjust all variables
      named 'sv' to something else, because 'sv' stands for "scanning volume".
      Let's rename it to 'av' which stands for "attaching volume" which is
      a bit more consistent and has the same length, which makes re-naming easy.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      517af48c
    • A
      UBI: rename si to ai · a4e6042f
      Artem Bityutskiy 提交于
      After re-naming the 'struct ubi_scan_info' we should adjust all variables
      named 'si' to something else, because 'si' stands for "scanning info".
      Let's rename it to 'ai' which stands for "attaching info" which is
      a bit more consistent and has the same length, which makes re-naming easy.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      a4e6042f
    • A
      UBI: rename seb to aeb · 2c5ec5ce
      Artem Bityutskiy 提交于
      After re-naming the 'struct ubi_scan_leb' we should adjust all variables
      named 'seb' to something else, because 'seb' stands for "scanning eraseblock".
      Let's rename it to 'aeb' which stands for "attaching eraseblock" which is
      a bit more consistend and has the same length.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      2c5ec5ce
    • A
      UBI: rename struct ubi_scan_info · afc15a81
      Artem Bityutskiy 提交于
      Rename 'struct ubi_scan_info' to 'struct ubi_attach_info'. This is part
      of the code re-structuring I am trying to do in order to add fastmap
      in a more logical way. Fastmap can share a lot with scanning, including
      the attach-time data structures, which all now have "scan" word in the
      name. Let's get rid of this word.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      afc15a81
    • A
      UBI: rename struct ubi_scan_volume · cb28a932
      Artem Bityutskiy 提交于
      Rename 'struct ubi_scan_volume' to 'struct ubi_ainf_volume'. This is part
      of the code re-structuring I am trying to do in order to add fastmap
      in a more logical way. Fastmap can share a lot with scanning, including
      the attach-time data structures, which all now have "scan" word in the
      name. Let's get rid of this word and use "ainf" instead which stands
      for "attach information". It has the same length as "scan" so re-naming
      is trivial.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      cb28a932
    • A
      UBI: rename struct ubi_scan_leb · 227423d2
      Artem Bityutskiy 提交于
      Rename 'struct ubi_scan_leb' to 'struct ubi_ainf_leb'. This is part
      of the code re-structuring I am trying to do in order to add fastmap
      in a more logical way. Fastmap can share a lot with scanning, including
      the attach-time data structures, which all now have "scan" word in the
      name. Let's get rid of this word and use "ainf" instead which stands
      for "attach information". It has the same length as "scan" so re-naming
      is trivial.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      227423d2
    • A
      97d6104b
    • A
      UBI: more of clean-up terminology for self-checks · 7bf523ae
      Artem Bityutskiy 提交于
      We have the "sefl-check" feature in UBI, but for historical reasons many
      corresponding functions and commentaries in the code use term "paranoid check"
      instead. Let's clean this up and use "self-check" everywhere.
      
      This patch renames functions, amends messages and kills several redundant
      debugging messages.
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      7bf523ae
    • A
      UBI: remove Kconfig debugging option · aa44d1d3
      Artem Bityutskiy 提交于
      This patch kills the UBI debugging Kconfig option completely and makes all the
      debugging stuff to be always compiled-in. It was pain in the neck to maintain
      this useless option because all users I am aware of have debugging enabled
      anyway - how else will you diagnose errors otherwise?
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      aa44d1d3
    • A
      UBI: amend commentaries WRT dtype · 44156267
      Artem Bityutskiy 提交于
      Richard removed the "dtype" hint, but few commentaries were left and this patch
      removes them. I've also added a better description about the "dtype" field in
      the ubi-user.h for people who may ever wonder what was that dtype thing about.
      
      This patch also adds an important note that it is better to use value "3" for
      the "dtype" field.
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      44156267
    • R
      UBI: Kill data type hint · b36a261e
      Richard Weinberger 提交于
      We do not need this feature and to our shame it even was not working
      and there was a bug found very recently.
      	-- Artem Bityutskiy
      
      Without the data type hint UBI2 (fastmap) will be easier to implement.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      b36a261e
    • A
      UBI: always dump the stack on error · 25886a36
      Artem Bityutskiy 提交于
      UBI (and UBIFS) are a bit over-engineered WRT debugging. The idea was to
      link as few as possible when debugging is disabled, but the downside is
      that most people produce bug reports which are difficult to understand.
      
      This patch weeds out the 'ubi_dbg_dump_stack()' function and turns it
      into 'dump_stack()' - it is always useful to have stack dump in case of
      an error.
      Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
      25886a36
  17. 09 3月, 2012 3 次提交
  18. 05 1月, 2012 1 次提交
  19. 30 11月, 2011 1 次提交