Filipe Manana
9c902bd02d
Btrfs: use kmem_cache_free when freeing entry in inode cache
...
commit c3f4a1685b upstream.
The free space entries are allocated using kmem_cache_zalloc(),
through __btrfs_add_free_space(), therefore we should use
kmem_cache_free() and not kfree() to avoid any confusion and
any potential problem. Looking at the kfree() definition at
mm/slab.c it has the following comment:
/*
* (...)
*
* Don't free memory not originally allocated by kmalloc()
* or you will run into trouble.
*/
So better be safe and use kmem_cache_free().
Signed-off-by: Filipe Manana <fdmanana@suse.com >
Reviewed-by: David Sterba <dsterba@suse.cz >
Signed-off-by: Chris Mason <clm@fb.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-08-03 09:29:46 -07:00
..
2013-12-20 07:45:12 -08:00
2012-07-25 16:15:07 -04:00
2012-03-22 01:45:34 +01:00
2014-06-30 20:09:46 -07:00
2014-06-30 20:09:46 -07:00
2013-05-06 15:54:49 -04:00
2013-05-17 21:52:52 -04:00
2011-12-21 19:14:09 +01:00
2009-01-06 09:38:55 -05:00
2014-03-23 21:38:20 -07:00
2013-05-06 15:55:23 -04:00
2015-07-03 19:48:09 -07:00
2015-07-03 19:48:09 -07:00
2015-01-16 06:59:02 -08:00
2013-03-07 07:52:40 -05:00
2013-05-06 15:55:17 -04:00
2013-05-17 21:40:15 -04:00
2013-05-17 21:40:16 -04:00
2012-12-12 17:15:41 -05:00
2015-07-03 19:48:09 -07:00
2015-01-08 09:58:17 -08:00
2013-05-06 15:55:23 -04:00
2013-02-26 02:46:10 -05:00
2008-09-25 11:04:06 -04:00
2015-06-22 16:55:55 -07:00
2013-05-17 21:52:52 -04:00
2015-01-08 09:58:17 -08:00
2013-05-06 15:54:34 -04:00
2015-05-06 21:56:21 +02:00
2014-11-14 08:48:01 -08:00
2015-03-18 13:22:29 +01:00
2014-06-30 20:09:45 -07:00
2013-05-17 21:40:22 -04:00
2012-10-09 09:14:45 -04:00
2013-05-06 15:55:23 -04:00
2015-08-03 09:29:46 -07:00
2011-04-25 16:46:11 +08:00
2015-03-18 13:22:29 +01:00
2015-05-06 21:56:21 +02:00
2013-05-06 15:55:16 -04:00
2013-05-06 15:55:23 -04:00
2013-03-14 14:57:10 -04:00
2012-03-20 21:48:21 +08:00
2013-02-01 14:24:23 -05:00
2012-12-11 13:31:30 -05:00
2013-05-06 15:54:35 -04:00
2013-05-06 15:54:35 -04:00
2012-03-22 11:52:54 +01:00
2013-05-06 15:54:23 -04:00
2013-05-06 15:55:23 -04:00
2013-05-06 15:55:20 -04:00
2013-05-17 21:52:52 -04:00
2013-02-01 14:24:23 -05:00
2012-06-14 21:29:16 -04:00
2013-05-06 15:54:55 -04:00
2014-10-30 09:35:09 -07:00
2013-05-06 15:55:14 -04:00
2014-06-30 20:09:46 -07:00
2014-06-30 20:09:46 -07:00
2013-05-06 15:55:23 -04:00
2012-07-23 16:28:06 -04:00
2015-06-22 16:55:55 -07:00
2013-03-01 15:01:01 -05:00
2014-10-30 09:35:09 -07:00
2013-05-06 15:55:23 -04:00
2013-02-20 12:59:36 -05:00
2015-03-18 13:22:29 +01:00
2013-05-06 15:55:23 -04:00
2013-08-11 18:35:24 -07:00
2013-05-06 15:54:44 -04:00
2008-09-25 15:41:59 -04:00
2014-06-30 20:09:46 -07:00
2013-05-17 21:52:52 -04:00
2015-07-03 19:48:09 -07:00
2011-02-01 11:12:29 -05:00
2012-10-09 09:19:57 -04:00