#include <unistd.h>
#include <glib.h>
-#include <babeltrace/assert-internal.h>
-#include <babeltrace/fd-cache-internal.h>
+#include <babeltrace2/assert-internal.h>
+#include <babeltrace2/fd-cache-internal.h>
struct file_key {
uint64_t dev;
g_hash_table_insert(fdc->cache, fd_internal->key, fd_internal);
}
- BT_ASSERT(fd_internal->ref_count >= 0);
-
fd_internal->ref_count++;
goto end;