From 92ce9fd9afd080954c0509cf62def6b355d79e94 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 18 Mar 2014 08:01:40 +0100 Subject: tdb: Make "tdb_find_dead" internally public Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam Reviewed-by: Stefan Metzmacher --- lib/tdb/common/tdb.c | 6 +++--- lib/tdb/common/tdb_private.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/tdb') diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c index b71be98f673..df4dd4daa9f 100644 --- a/lib/tdb/common/tdb.c +++ b/lib/tdb/common/tdb.c @@ -445,9 +445,9 @@ _PUBLIC_ int tdb_delete(struct tdb_context *tdb, TDB_DATA key) /* * See if we have a dead record around with enough space */ -static tdb_off_t tdb_find_dead(struct tdb_context *tdb, uint32_t hash, - struct tdb_record *r, tdb_len_t length, - tdb_off_t *p_last_ptr) +tdb_off_t tdb_find_dead(struct tdb_context *tdb, uint32_t hash, + struct tdb_record *r, tdb_len_t length, + tdb_off_t *p_last_ptr) { tdb_off_t rec_ptr, last_ptr; tdb_off_t best_rec_ptr = 0; diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index 7227b43d2c8..4c73bb64f51 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -272,6 +272,9 @@ int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key, void *private_data); tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, uint32_t hash, int locktype, struct tdb_record *rec); +tdb_off_t tdb_find_dead(struct tdb_context *tdb, uint32_t hash, + struct tdb_record *r, tdb_len_t length, + tdb_off_t *p_last_ptr); void tdb_io_init(struct tdb_context *tdb); int tdb_expand(struct tdb_context *tdb, tdb_off_t size); tdb_off_t tdb_expand_adjust(tdb_off_t map_size, tdb_off_t size, int page_size); -- cgit