diff options
author | Mike Rapoport <[email protected]> | 2018-08-23 17:01:02 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-08-23 18:48:43 -0700 |
commit | ff4dc77293ec7aafb022b9b40b14ee188d43c901 (patch) | |
tree | d621b96d8a6cc81490f4f95a531e3688f309fec8 | |
parent | b86181f1ad94054ae953d81452329377abeec0a8 (diff) |
mm/util: add kernel-doc for kvfree
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | mm/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/util.c b/mm/util.c index 6809014cf4c8..d2890a407332 100644 --- a/mm/util.c +++ b/mm/util.c @@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node) } EXPORT_SYMBOL(kvmalloc_node); +/** + * kvfree - free memory allocated with kvmalloc + * @addr: pointer returned by kvmalloc + * + * If the memory is allocated from vmalloc area it is freed with vfree(). + * Otherwise kfree() is used. + */ void kvfree(const void *addr) { if (is_vmalloc_addr(addr)) |