diff
-	WARN_ON(atomic_read(&eb->refs) == 0);
+	if (eb && atomic_read(&eb->refs) == 0)
+		pr_warn("btrfs: extent buffer has zero refs\n");
