summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2018-07-12 13:01:56 +0200
committerRichard Weinberger <richard@nod.at>2018-08-15 00:25:21 +0200
commit54169ddd382d461f7c01cc5a5182a4b4bc539489 (patch)
treeda55921bb2598992c29f383e53a05c8ac5d2217e /fs/ubifs
parentubi: expose the volume CRC check skip flag (diff)
downloadlinux-54169ddd382d461f7c01cc5a5182a4b4bc539489.tar.xz
linux-54169ddd382d461f7c01cc5a5182a4b4bc539489.zip
ubifs: Turn two ubifs_assert() into a WARN_ON()
We are going to pass struct ubifs_info to ubifs_assert() but while unloading the UBIFS module we don't have the info struct anymore. Therefore replace the asserts by a regular WARN_ON(). Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 564a131afc56..61579d6306f5 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2306,8 +2306,8 @@ late_initcall(ubifs_init);
static void __exit ubifs_exit(void)
{
- ubifs_assert(list_empty(&ubifs_infos));
- ubifs_assert(atomic_long_read(&ubifs_clean_zn_cnt) == 0);
+ WARN_ON(list_empty(&ubifs_infos));
+ WARN_ON(atomic_long_read(&ubifs_clean_zn_cnt) == 0);
dbg_debugfs_exit();
ubifs_compressors_exit();