Btrfs: make the snap/subv deletion end more early when the fs is R/O
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 14 May 2013 10:20:43 +0000 (10:20 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:36 +0000 (11:29 -0400)
commitbabbf170c781f24095336c82ebf18ad272ddb773
treecc18313731030bc2f314d103aaf81aa599b1cb17
parentdc7f370c05dd024697d4d6c68f91fd04fe8fad1e
Btrfs: make the snap/subv deletion end more early when the fs is R/O

The snapshot/subvolume deletion might spend lots of time, it would make
the remount task wait for a long time. This patch improve this problem,
we will break the deletion if the fs is remounted to be R/O. It will make
the users happy.

Cc: David Sterba <dsterba@suse.cz>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c