]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: move the R/O check out of btrfs_clean_one_deleted_snapshot()
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 14 May 2013 10:20:42 +0000 (10:20 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:34 +0000 (11:29 -0400)
commite7831073fc3d5aa79584c23289213ba47905176a
tree317b8c9e56af3b1e91bceee326883a63b47ddc6b
parent2730651f723b27e1078f04937e3cd2cefaca17ec
Btrfs: move the R/O check out of btrfs_clean_one_deleted_snapshot()

If the fs is remounted to be R/O, it is unnecessary to call
btrfs_clean_one_deleted_snapshot(), so move the R/O check out of
this function. And besides that, it can make the check logic in the
caller more clear.

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/disk-io.c
fs/btrfs/transaction.c