summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-05-15 21:35:21 +0300
committerMike Snitzer <snitzer@redhat.com>2015-06-12 00:13:02 +0300
commit0f24b79b52730e15d9e3386ce27da2110eb4597d (patch)
tree2b130289e6b1700a7142b457597a061589cf1ba0 /drivers/md
parentfba10109a45d864bab98ae90dd63bcc2789352b3 (diff)
downloadlinux-0f24b79b52730e15d9e3386ce27da2110eb4597d.tar.xz
dm stats: Use kvfree() in dm_kvfree()
Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-stats.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c
index f478a4c96d2f..492fe6a5ebf2 100644
--- a/drivers/md/dm-stats.c
+++ b/drivers/md/dm-stats.c
@@ -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)