This series changes the UBIFS assert code such that users can specify what do to upon a failed assert. The new mount option "assert=" controls these actions. Currently three actions are supported: - report: Just report the assertion - panic: Panic the kernel - read-only: Switch to read-only mode >From now on the default action is read-only. Richard Weinberger (5): ubifs: Turn two ubifs_assert() into a WARN_ON() ubifs: Pass struct ubifs_info to ubifs_assert() ubifs: Rework ubifs_assert() ubifs: Allow setting assert action as mount parameter ubifs: Set default assert action to read-only fs/ubifs/budget.c | 68 ++++++++++++------------- fs/ubifs/commit.c | 8 +-- fs/ubifs/crypto.c | 4 +- fs/ubifs/debug.c | 42 ++++++++++++---- fs/ubifs/debug.h | 14 +++--- fs/ubifs/dir.c | 35 ++++++------- fs/ubifs/file.c | 47 ++++++++++-------- fs/ubifs/find.c | 54 ++++++++++---------- fs/ubifs/gc.c | 64 ++++++++++++------------ fs/ubifs/io.c | 97 ++++++++++++++++++------------------ fs/ubifs/journal.c | 52 ++++++++++---------- fs/ubifs/key.h | 14 +++--- fs/ubifs/log.c | 12 ++--- fs/ubifs/lprops.c | 86 ++++++++++++++++---------------- fs/ubifs/lpt.c | 112 +++++++++++++++++++++--------------------- fs/ubifs/lpt_commit.c | 50 ++++++++++--------- fs/ubifs/master.c | 2 +- fs/ubifs/misc.c | 11 +++++ fs/ubifs/misc.h | 16 +++--- fs/ubifs/orphan.c | 26 +++++----- fs/ubifs/recovery.c | 14 +++--- fs/ubifs/replay.c | 13 ++--- fs/ubifs/sb.c | 12 ++--- fs/ubifs/scan.c | 2 +- fs/ubifs/shrinker.c | 10 ++-- fs/ubifs/super.c | 74 +++++++++++++++++++--------- fs/ubifs/tnc.c | 107 ++++++++++++++++++++-------------------- fs/ubifs/tnc_commit.c | 28 +++++------ fs/ubifs/tnc_misc.c | 38 ++++++++------ fs/ubifs/ubifs.h | 31 +++++++++--- fs/ubifs/xattr.c | 16 +++--- 31 files changed, 632 insertions(+), 527 deletions(-) -- 2.18.0