From: Miao Xie Date: Tue, 14 May 2013 10:20:42 +0000 (+0000) Subject: Btrfs: move the R/O check out of btrfs_clean_one_deleted_snapshot() X-Git-Tag: v3.11-rc1~70^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc7f370c05dd024697d4d6c68f91fd04fe8fad1e;p=pandora-kernel.git 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 Signed-off-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed