commit | b9e9a6cbc6d25b89d8007e5a680319e07921ead8 | [log] [tgz] |
---|---|---|
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | Fri Aug 09 13:25:36 2013 +0800 |
committer | Chris Mason <chris.mason@fusionio.com> | Sun Sep 01 08:16:27 2013 -0400 |
tree | 600fe0d3d6962bf13d6efbca1ddc9cbcb4f0d06b | |
parent | 742916b885edbc6453b4769458959929746e8e7e [diff] |
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>