[GIT PULL] UBI/UBIFS updates for 4.1

From: Richard Weinberger
Date: Wed Apr 15 2015 - 15:59:25 EST


Linus,

the following changes since commit bc465aa9d045feb0e13b4a8f32cc33c1943f62d6:

Linux 4.0-rc5 (2015-03-22 16:50:21 -0700)

are available in the git repository at:

git://git.infradead.org/linux-ubifs.git tags/upstream-4.1-rc1

for you to fetch changes up to 502690674281a047abd45f81e64c498bc23a8bb3:

UBI: power cut emulation for testing (2015-04-13 21:05:17 +0200)

----------------------------------------------------------------
This pull request includes the following UBI/UBIFS changes:
* Powercut emulation for UBI
* A huge update to UBI Fastmap
* Cleanups and bugfixes all over UBI and UBIFS

----------------------------------------------------------------
Artem Bityutskiy (1):
Merge tag 'v4.0-rc5' into linux-next

Brian Norris (5):
UBI: account for bitflips in both the VID header and data
UBI: fix out of bounds write
UBI: initialize LEB number variable
UBI: fix check for "too many bytes"
UBI: align comment for readability

Fabian Frederick (1):
UBIFS: simplify returns

Richard Weinberger (38):
UBI: Fastmap: Ensure that only one fastmap work is scheduled
UBI: Fastmap: Ensure that all fastmap work is done upon WL shutdown
UBI: Fastmap: Fix races in ubi_wl_get_peb()
UBI: Split __wl_get_peb()
UBI: Fastmap: Make ubi_refill_pools() fair
UBI: Fastmap: Don't allocate new ubi_wl_entry objects
UBI: Fastmap: Fix memory leaks while closing the WL sub-system
UBI: Fastmap: Notify user in case of an ubi_update_fastmap() failure
UBI: Fastmap: Wrap fastmap specific function in a ifdef
UBI: Fastmap: Fix fastmap usage in ubi_volume_notify()
UBI: Fastmap: Fix memory leak while attaching
UBI: Remove alloc_ai() slab name from parameter list
UBI: Fastmap: Fix race in ubi_eba_atomic_leb_change()
UBI: Fastmap: Remove bogus ubi_assert()
UBI: Fastmap: Remove eba_orphans logic
UBI: Fastmap: Switch to ro mode if invalidate_fastmap() fails
UBI: Fastmap: Make WL pool size 50% of user pool size
UBI: Fastmap: Fix leb_count unbalance
UBI: Fastmap: Fix race after ubi_wl_get_peb()
UBI: Fastmap: Set used_ebs only for static volumes
UBI: Fastmap: Locking updates
UBI: Fastmap: Prepare for variable sized fastmaps
UBI: Fastmap: Rework fastmap error paths
UBI: Add initial support for fastmap self checks
UBI: Fastmap: Enhance fastmap checking
UBI: Fix stale pointers in ubi->lookuptbl
UBI: Fastmap: Add self check to detect absent PEBs
UBI: Fastmap: Make self_check_eba() depend on fastmap self checking
UBI: Fastmap: Add new module parameter fm_debug
UBI: Move fastmap specific functions out of wl.c
UBI: Add accessor functions for WL data structures
UBI: Fastmap: Wire up WL accessor functions
UBI: Fastmap: Introduce ubi_fastmap_init()
UBI: Fastmap: Introduce may_reserve_for_fm()
UBI: Fastmap: Remove else after return.
UBI: Fastmap: Add blank line after declarations
UBI: Fastmap: Remove is_fm_block()
UBI: Fastmap: Fall back to scanning mode after ECC error

Sheng Yong (3):
UBIFS: do not write master node if need recovery
UBIFS: extend debug/message capabilities
UBIFS: fix output format of INUM_WATERMARK

Taesoo Kim (1):
UBIFS: fix incorrect unlocking handling

Yannick Guerrini (1):
UBIFS: Fix trivial typos in comments

david.oberhollenzer@xxxxxxxxxxxxx (1):
UBI: power cut emulation for testing

drivers/mtd/ubi/attach.c | 73 +++---
drivers/mtd/ubi/build.c | 29 ++-
drivers/mtd/ubi/cdev.c | 2 +-
drivers/mtd/ubi/debug.c | 100 +++++++-
drivers/mtd/ubi/debug.h | 12 +
drivers/mtd/ubi/eba.c | 54 ++--
drivers/mtd/ubi/fastmap-wl.c | 362 ++++++++++++++++++++++++++
drivers/mtd/ubi/fastmap.c | 443 +++++++++++++++++---------------
drivers/mtd/ubi/io.c | 6 +
drivers/mtd/ubi/ubi-media.h | 2 -
drivers/mtd/ubi/ubi.h | 85 ++++++-
drivers/mtd/ubi/wl.c | 587 +++++++++++--------------------------------
drivers/mtd/ubi/wl.h | 28 +++
fs/ubifs/budget.c | 2 +-
fs/ubifs/commit.c | 12 +-
fs/ubifs/compress.c | 22 +-
fs/ubifs/debug.c | 186 +++++++-------
fs/ubifs/dir.c | 23 +-
fs/ubifs/file.c | 17 +-
fs/ubifs/io.c | 40 +--
fs/ubifs/ioctl.c | 2 +-
fs/ubifs/journal.c | 17 +-
fs/ubifs/log.c | 4 +-
fs/ubifs/lprops.c | 62 ++---
fs/ubifs/lpt.c | 59 ++---
fs/ubifs/lpt_commit.c | 34 +--
fs/ubifs/master.c | 6 +-
fs/ubifs/orphan.c | 26 +-
fs/ubifs/recovery.c | 44 ++--
fs/ubifs/replay.c | 34 +--
fs/ubifs/sb.c | 30 +--
fs/ubifs/scan.c | 24 +-
fs/ubifs/super.c | 107 ++++----
fs/ubifs/tnc.c | 20 +-
fs/ubifs/tnc_commit.c | 12 +-
fs/ubifs/tnc_misc.c | 24 +-
fs/ubifs/ubifs.h | 40 +--
fs/ubifs/xattr.c | 18 +-
38 files changed, 1507 insertions(+), 1141 deletions(-)
create mode 100644 drivers/mtd/ubi/fastmap-wl.c
create mode 100644 drivers/mtd/ubi/wl.h


Attachment: signature.asc
Description: OpenPGP digital signature