Btrfs-progs: add fsck test for filesystem with shared prealloc extents
[platform/upstream/btrfs-progs.git] / task-utils.c
index a4017ff..12b0002 100644 (file)
@@ -119,6 +119,9 @@ void task_period_wait(struct task_info *info)
        if (!info)
                return;
 
+       if (info->periodic.timer_fd == 0)
+               return;
+
        ret = read(info->periodic.timer_fd, &missed, sizeof (missed));
        if (ret == -1)
                return;