aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-11-20 21:21:28 -0500
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 09:36:34 -0500
commit78a6184a3ff9041280ee56273c01e5679a831b39 (patch)
tree0310eb020cf6ed7a8ff71feb8c468bb6e42488fa /fs/btrfs/disk-io.c
parent6f60cbd3ae442cb35861bb522f388db123d42ec1 (diff)
Btrfs: use slabs for delayed reference allocation
The delayed reference allocation is in the fast path of the IO, so use slabs to improve the speed of the allocation. And besides that, it can do check for leaked objects when the module is removed. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 65f03670a952..4438aac4947f 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3614,7 +3614,7 @@ int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
3614 continue; 3614 continue;
3615 } 3615 }
3616 3616
3617 kfree(head->extent_op); 3617 btrfs_free_delayed_extent_op(head->extent_op);
3618 delayed_refs->num_heads--; 3618 delayed_refs->num_heads--;
3619 if (list_empty(&head->cluster)) 3619 if (list_empty(&head->cluster))
3620 delayed_refs->num_heads_ready--; 3620 delayed_refs->num_heads_ready--;