diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-05-15 20:35:21 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-06-11 23:13:02 +0200 |
commit | 0f24b79b52730e15d9e3386ce27da2110eb4597d (patch) | |
tree | 2b130289e6b1700a7142b457597a061589cf1ba0 /drivers | |
parent | dm cache: age and write back cache entries even without active IO (diff) | |
download | linux-0f24b79b52730e15d9e3386ce27da2110eb4597d.tar.xz linux-0f24b79b52730e15d9e3386ce27da2110eb4597d.zip |
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')
-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 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) |