Btrfs: don't wait for the completion of all the ordered extents
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 4 Nov 2013 15:13:25 +0000 (23:13 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:13:44 +0000 (22:13 -0500)
commitb02441999efcc6152b87cd58e7970bb7843f76cf
tree36f8e823f3ee84528f3f030323b472a72a915094
parent9f3a074d108810139ad4af49a29d347a4cf41e9a
Btrfs: don't wait for the completion of all the ordered extents

It is very likely that there are lots of ordered extents in the filesytem,
if we wait for the completion of all of them when we want to reclaim some
space for the metadata space reservation, we would be blocked for a long
time. The performance would drop down suddenly for a long time.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/dev-replace.c
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/relocation.c
fs/btrfs/super.c
fs/btrfs/transaction.c