diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-05-15 18:35:21 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-06-11 21:13:02 (GMT) |
commit | 0f24b79b52730e15d9e3386ce27da2110eb4597d (patch) | |
tree | 2b130289e6b1700a7142b457597a061589cf1ba0 /drivers/md/dm-stats.c | |
parent | fba10109a45d864bab98ae90dd63bcc2789352b3 (diff) | |
download | linux-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/dm-stats.c')
-rw-r--r-- | drivers/md/dm-stats.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c index f478a4c..492fe6a 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) |