On Mon, 9 Nov 2015, Tetsuo Handa wrote: > There are many locations that do > > if (memory_was_allocated_by_vmalloc) > vfree(ptr); > else > kfree(ptr); > > but kvfree() can handle both kmalloc()ed memory and vmalloc()ed memory > using is_vmalloc_addr(). Unless callers have special reasons, we can > replace this branch with kvfree(). Please check and reply if you found > problems. > > Signed-off-by: Tetsuo Handa <[email protected]> > Acked-by: Michal Hocko <[email protected]> > Cc: Russell King <[email protected]> # arm > Cc: <[email protected]> # apei > Cc: <[email protected]> # drbd > Cc: <[email protected]> # mspec > Cc: <[email protected]> # drm > Cc: Oleg Drokin <[email protected]> # lustre > Cc: Andreas Dilger <[email protected]> # lustre > Cc: <[email protected]> # coda > Cc: <[email protected]> # jffs2 > Cc: Jan Kara <[email protected]> # udf > Cc: <[email protected]> # xattr > Cc: <[email protected]> # ipc + mm > Cc: <[email protected]> # ipv4
Acked-by: David Rientjes <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
