return (tdb_ofs_write(tdb, last_ptr, &rec->next) == 0);
}
+static void tdb_purge_dead(struct tdb_context *tdb, uint32_t hash)
+{
+ uint32_t max_dead_records = tdb->max_dead_records;
+
+ tdb->max_dead_records = 0;
+
+ tdb_trim_dead(tdb, hash);
+
+ tdb->max_dead_records = max_dead_records;
+}
+
/*
* Chain "hash" is assumed to be locked
*/