Btrfs: don't flush all delalloc inodes when we doesn't get s_umount lock
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 6 Mar 2014 05:55:01 +0000 (13:55 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:17:27 +0000 (15:17 -0400)
commit6c255e67cec1c38a0569c7f823eba63f9449ccf8
tree0e23bdebb81ce14843d85dd0deb861cc2c0ef5fb
parent24af7dd1881f9f5c13c7d82e22d7858137383766
Btrfs: don't flush all delalloc inodes when we doesn't get s_umount lock

We needn't flush all delalloc inodes when we doesn't get s_umount lock,
or we would make the tasks wait for a long time.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/ctree.h
fs/btrfs/dev-replace.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c
fs/btrfs/transaction.c