Tetsuo Handa
1d5cfdb076
tree wide: use kvfree() than conditional kfree()/vfree()
...
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-kernel@I-love.SAKURA.ne.jp>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Jan Kara <jack@suse.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Acked-by: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Acked-by: David Rientjes <rientjes@google.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: Boris Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-01-22 17:02:18 -08:00
..
2015-08-26 20:27:02 +01:00
2011-07-02 10:56:11 +01:00
2015-08-26 20:27:02 +01:00
2015-08-26 20:27:02 +01:00
2015-08-26 20:27:02 +01:00
2015-08-26 20:27:02 +01:00
2015-08-26 20:27:02 +01:00
2015-08-26 20:27:02 +01:00
2011-07-02 10:56:11 +01:00
2015-11-05 19:34:48 -08:00
2012-11-06 19:47:35 +00:00
2014-07-18 12:29:04 +01:00
2015-08-18 14:00:30 +01:00
2015-12-22 12:15:53 +00:00
2014-07-18 12:29:04 +01:00
2014-11-21 15:24:50 +00:00
2013-12-29 12:32:47 +00:00
2015-12-03 00:03:09 +00:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2015-04-14 22:26:52 +01:00
2012-03-28 18:30:01 +01:00
2015-12-02 23:57:54 +00:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2012-03-29 16:53:48 -07:00
2012-03-20 21:48:14 +08:00
2012-03-20 21:48:14 +08:00
2014-12-03 16:00:04 +00:00
2012-03-20 21:48:14 +08:00
2012-03-29 16:53:48 -07:00
2016-01-22 17:02:18 -08:00
2015-08-01 22:25:04 +01:00
2015-01-07 20:33:33 +00:00
2013-11-07 00:15:49 +00:00
2014-11-21 15:24:50 +00:00
2015-10-19 17:08:33 +01:00
2015-10-19 17:08:33 +01:00
2016-01-15 17:56:32 -08:00
2011-12-08 10:30:37 +00:00
2013-06-04 16:52:38 +01:00
2015-11-09 15:11:24 -08:00
2015-06-24 17:49:41 -07:00
2015-12-01 21:44:24 +01:00
2016-01-12 13:41:03 +00:00
2012-02-23 20:18:56 -07:00
2015-12-13 19:18:28 +01:00
2015-12-18 14:09:21 +01:00
2014-05-30 00:47:23 +01:00
2014-07-18 12:29:04 +01:00
2015-10-27 09:20:50 +09:00
2014-06-02 09:20:11 +01:00
2016-01-14 16:00:49 -08:00
2016-01-20 18:03:56 -08:00
2015-07-03 17:06:56 +01:00
2011-07-02 10:56:10 +01:00
2011-07-02 10:56:10 +01:00
2011-07-02 10:56:10 +01:00
2015-03-18 10:13:46 +00:00
2015-08-21 13:55:53 +01:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-05-03 23:22:27 +01:00
2015-03-28 15:46:14 +00:00
2015-04-14 22:28:25 +01:00
2015-04-14 22:28:25 +01:00
2015-05-03 23:22:09 +01:00
2015-05-03 23:22:09 +01:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-05-03 23:23:09 +01:00
2015-04-14 22:28:25 +01:00
2015-12-01 21:44:25 +01:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2013-03-26 09:55:34 +00:00
2015-03-28 15:46:14 +00:00
2015-06-12 21:18:08 +01:00
2015-06-01 23:48:19 +01:00
2016-01-05 11:07:28 +00:00
2015-11-16 18:34:38 +00:00
2015-03-28 15:46:14 +00:00
2015-03-28 15:46:14 +00:00
2015-06-01 23:46:33 +01:00
2013-04-17 16:53:24 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00
2014-07-18 12:29:04 +01:00