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:
Zach Brown
2017-02-01 10:49:49 -08:00
parent 67aec72c77
commit 0298cbb562

View File

@@ -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);
}