Skip to content

Commit 54169dd

Browse files
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 <[email protected]>
1 parent c355aa4 commit 54169dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ubifs/super.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,8 +2306,8 @@ late_initcall(ubifs_init);
23062306

23072307
static void __exit ubifs_exit(void)
23082308
{
2309-
ubifs_assert(list_empty(&ubifs_infos));
2310-
ubifs_assert(atomic_long_read(&ubifs_clean_zn_cnt) == 0);
2309+
WARN_ON(list_empty(&ubifs_infos));
2310+
WARN_ON(atomic_long_read(&ubifs_clean_zn_cnt) == 0);
23112311

23122312
dbg_debugfs_exit();
23132313
ubifs_compressors_exit();

0 commit comments

Comments
 (0)