]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita06380391b11094ddd805c7cdaf05294880230dc
treecc18313731030bc2f314d103aaf81aa599b1cb17
parente7831073fc3d5aa79584c23289213ba47905176a
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