]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - scrub/vfs.c
xfs_scrub: update copyright years for scrub/ files
[thirdparty/xfsprogs-dev.git] / scrub / vfs.c
index 577eb6dc3e868729dd3cb92c732c1e7a8a78b1c8..9e459d6243fa4428dd27de192fa5935db9ee8fcf 100644 (file)
@@ -1,7 +1,7 @@
-// SPDX-License-Identifier: GPL-2.0+
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
- * Copyright (C) 2018 Oracle.  All Rights Reserved.
- * Author: Darrick J. Wong <darrick.wong@oracle.com>
+ * Copyright (C) 2018-2024 Oracle.  All Rights Reserved.
+ * Author: Darrick J. Wong <djwong@kernel.org>
  */
 #include "xfs.h"
 #include <stdint.h>
@@ -263,7 +263,7 @@ scan_fs_tree(
         * about to tear everything down.
         */
        pthread_mutex_lock(&sft.lock);
-       if (sft.nr_dirs)
+       while (sft.nr_dirs > 0)
                pthread_cond_wait(&sft.wakeup, &sft.lock);
        assert(sft.nr_dirs == 0);
        pthread_mutex_unlock(&sft.lock);