mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 11:10:44 +00:00
Fix compact cleanup on mount failure
scoutfs_compact_destroy() was testing the wrong pointer to see if _setup() had built up resources that needed to be torn down. It'd crash on mount failure. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -687,7 +687,7 @@ void scoutfs_compact_destroy(struct super_block *sb)
|
||||
{
|
||||
DECLARE_COMPACT_INFO(sb, ci);
|
||||
|
||||
if (ci->workq) {
|
||||
if (ci) {
|
||||
flush_work(&ci->work);
|
||||
destroy_workqueue(ci->workq);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user