X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=lib%2Faxmap.c;h=8247fc1ae5d75f8aa452f2018bf248a6cc3a36a7;hp=e847a387bc6b8ab984ca4ca4162183ef37b6dd0f;hb=d555a23db84364ab942361a719a4379605bdbc41;hpb=aad918e47d119eb2043311f1a2a45ce109c047d1 diff --git a/lib/axmap.c b/lib/axmap.c index e847a387..8247fc1a 100644 --- a/lib/axmap.c +++ b/lib/axmap.c @@ -387,17 +387,15 @@ static uint64_t axmap_find_first_free(struct axmap *axmap, unsigned int level, return (uint64_t) -1ULL; } -uint64_t axmap_first_free(struct axmap *axmap) +static uint64_t axmap_first_free(struct axmap *axmap) { uint64_t ret; if (firstfree_valid(axmap)) return axmap->first_free; - fio_mutex_down(&axmap->lock); ret = axmap_find_first_free(axmap, axmap->nr_levels - 1, 0); axmap->first_free = ret; - fio_mutex_up(&axmap->lock); return ret; }