Skip to content

Commit

Permalink
dm stats: Use kvfree() in dm_kvfree()
Browse files Browse the repository at this point in the history
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
penberg authored and snitm committed Jun 11, 2015
1 parent fba1010 commit 0f24b79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/md/dm-stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f24b79

Please sign in to comment.