ubifs: Turn two ubifs_assert() into a WARN_ON()
authorRichard Weinberger <richard@nod.at>
Thu, 12 Jul 2018 11:01:56 +0000 (13:01 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 14 Aug 2018 22:25:21 +0000 (00:25 +0200)
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>
fs/ubifs/super.c

index 564a131afc569c372c9f36392f1dda730a2a1270..61579d6306f5fe9233e44d8c3a60d509b095d8bb 100644 (file)
@@ -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();