Commit 0f24b79b authored by Pekka Enberg's avatar Pekka Enberg Committed by Mike Snitzer

dm stats: Use kvfree() in dm_kvfree()

Use kvfree() instead of open-coding it.
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent fba10109
......@@ -160,10 +160,7 @@ static void dm_kvfree(void *ptr, size_t alloc_size)
free_shared_memory(alloc_size);
if (is_vmalloc_addr(ptr))
vfree(ptr);
else
kfree(ptr);
kvfree(ptr);
}
static void dm_stat_free(struct rcu_head *head)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment