Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1266023
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() |
| Date | 2015-11-09 22:20 +0100 |
| Message-ID | <qt215-3od-45@gated-at.bofh.it> (permalink) |
| References | <qsTh7-5UJ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Monday, November 09, 2015 08:56:10 PM 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. ACK for the ACPI changes (and CCing Tony and Boris for the heads-up as they are way more famailiar with the APEI code than I am). Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> - 2015-11-09 13:00 +0100
Re: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() Jan Kara <jack@suse.cz> - 2015-11-09 13:20 +0100
Re: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() David Miller <davem@davemloft.net> - 2015-11-09 17:30 +0100
Re: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-11-09 17:10 +0100
Re: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() "Dilger, Andreas" <andreas.dilger@intel.com> - 2015-11-09 21:50 +0100
Re: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2015-11-09 22:20 +0100
RE: [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() "Luck, Tony" <tony.luck@intel.com> - 2015-11-10 00:30 +0100
Re: [DRBD-user] [PATCH] tree wide: Use kvfree() than conditional kfree()/vfree() Lars Ellenberg <lars.ellenberg@linbit.com> - 2015-11-10 14:40 +0100
csiph-web