The patch titled Subject: mm/util.c: improve kvfree() kerneldoc has been added to the -mm tree. Its filename is mm-utilc-improve-kvfree-kerneldoc.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-utilc-improve-kvfree-kerneldoc.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-utilc-improve-kvfree-kerneldoc.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm/util.c: improve kvfree() kerneldoc Scooped from an email from Matthew. Cc: Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx> Cc: Jonathan Corbet <corbet@xxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/util.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) --- a/mm/util.c~mm-utilc-improve-kvfree-kerneldoc +++ a/mm/util.c @@ -435,11 +435,14 @@ void *kvmalloc_node(size_t size, gfp_t f EXPORT_SYMBOL(kvmalloc_node); /** - * kvfree - free memory allocated with kvmalloc - * @addr: pointer returned by kvmalloc + * kvfree() - Free memory. + * @addr: Pointer to allocated memory. * - * If the memory is allocated from vmalloc area it is freed with vfree(). - * Otherwise kfree() is used. + * kvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc(). + * It is slightly more efficient to use kfree() or vfree() if you are certain + * that you know which one to use. + * + * Context: Any context except NMI. */ void kvfree(const void *addr) { _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-utilc-improve-kvfree-kerneldoc.patch arm-arch-arm-include-asm-pageh-needs-personalityh.patch mm.patch mm-page_alloc-reduce-unnecessary-binary-search-in-memblock_next_valid_pfn-fix.patch mm-page_alloc-reduce-unnecessary-binary-search-in-memblock_next_valid_pfn-fix-fix.patch mm-memblock-introduce-memblock_search_pfn_regions-fix.patch mm-calculate-deferred-pages-after-skipping-mirrored-memory-fix.patch list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch