android_kernel_google_msm/fs/btrfs
Filipe Manana 38464cd9b3 Btrfs: use kmem_cache_free when freeing entry in inode cache
commit c3f4a1685bb87e59c886ee68f7967eae07d4dffa 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: Zefan Li <lizefan@huawei.com>
2016-03-21 09:17:39 +08:00
..
acl.c
async-thread.c
async-thread.h
backref.c Btrfs: use right type to get real comparison 2014-06-30 20:01:33 -07:00
backref.h
btrfs_inode.h
check-integrity.c
check-integrity.h
compat.h
compression.c Btrfs: fix data corruption when reading/updating compressed extents 2014-03-23 21:37:08 -07:00
compression.h
ctree.c
ctree.h
delayed-inode.c
delayed-inode.h
delayed-ref.c
delayed-ref.h
dir-item.c
disk-io.c Btrfs: fix fs corruption on transaction abort if device supports discard 2015-04-14 17:33:45 +08:00
disk-io.h
export.c
export.h
extent-tree.c Btrfs: fix log tree corruption when fs mounted with -o discard 2015-09-18 09:20:26 +08:00
extent_io.c btrfs: fix use of uninit "ret" in end_extent_writepage() 2014-06-30 20:01:33 -07:00
extent_io.h Btrfs: fix race between mmap writes and compression 2013-04-05 10:04:34 -07:00
extent_map.c
extent_map.h
file-item.c Btrfs: fix kfree on list_head in btrfs_lookup_csums_range error cleanup 2015-02-02 17:05:13 +08:00
file.c
free-space-cache.c
free-space-cache.h
hash.h
inode-item.c
inode-map.c Btrfs: use kmem_cache_free when freeing entry in inode cache 2016-03-21 09:17:39 +08:00
inode-map.h
inode.c Btrfs: fix race between mmap writes and compression 2013-04-05 10:04:34 -07:00
ioctl.c Btrfs: fix inode eviction infinite loop after cloning into it 2015-09-18 09:20:30 +08:00
ioctl.h
Kconfig
locking.c
locking.h
lzo.c
Makefile
ordered-data.c
ordered-data.h
orphan.c
print-tree.c
print-tree.h
reada.c
relocation.c Btrfs: change how we queue blocks for backref checking 2013-10-13 15:42:50 -07:00
root-tree.c
scrub.c Btrfs: don't drop path when printing out tree errors in scrub 2013-04-05 10:04:34 -07:00
struct-funcs.c
super.c
sysfs.c
transaction.c
transaction.h
tree-defrag.c
tree-log.c Btrfs: make sure nbytes are right after log replay 2013-04-25 21:19:56 -07:00
tree-log.h
ulist.c
ulist.h
version.h
volumes.c fs: btrfs: volumes.c: Fix for possible null pointer dereference 2014-06-30 20:01:33 -07:00
volumes.h
xattr.c btrfs: don't accept bare namespace as a valid xattr 2015-09-18 09:20:26 +08:00
xattr.h
zlib.c