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 <penguin-ker...@i-love.sakura.ne.jp> > Acked-by: Michal Hocko <mho...@suse.com> > Cc: Russell King <li...@arm.linux.org.uk> # arm > Cc: <linux-a...@vger.kernel.org> # apei > Cc: <drbd-u...@lists.linbit.com> # drbd > Cc: <linux-ker...@vger.kernel.org> # mspec > Cc: <dri-de...@lists.freedesktop.org> # drm > Cc: Oleg Drokin <oleg.dro...@intel.com> # lustre > Cc: Andreas Dilger <andreas.dil...@intel.com> # lustre > Cc: <codal...@coda.cs.cmu.edu> # coda > Cc: <linux-...@lists.infradead.org> # jffs2 > Cc: Jan Kara <j...@suse.com> # udf > Cc: <linux-fsde...@vger.kernel.org> # xattr > Cc: <linux...@kvack.org> # ipc + mm > Cc: <netdev@vger.kernel.org> # ipv4
Acked-by: David Rientjes <rient...@google.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html