]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: allocate prelim_ref with a slab allocater
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Fri, 9 Aug 2013 05:25:36 +0000 (13:25 +0800)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:27 +0000 (08:16 -0400)
commit3eff5566eec214908a5f1b28b7e714c809fde41a
tree600fe0d3d6962bf13d6efbca1ddc9cbcb4f0d06b
parenta430ebcb87b4f6e37b2c32e80257089c36c28daf
Btrfs: allocate prelim_ref with a slab allocater

struct __prelim_ref is allocated and freed frequently when
walking backref tree, using slab allocater can not only
speed up allocating but also detect memory leaks.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/backref.c
fs/btrfs/backref.h
fs/btrfs/super.c