From: David Sterba Date: Wed, 5 Feb 2014 01:03:47 +0000 (+0100) Subject: btrfs: remove obsolete comment in btrfs_clean_one_deleted_snapshot X-Git-Tag: v3.18-rc1~91^2~119 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=32471dc2ba287f0bb8ac9af65c46f089965191f2;p=~emulex%2Finfiniband.git btrfs: remove obsolete comment in btrfs_clean_one_deleted_snapshot The comment applied when there was a BUG_ON. Signed-off-by: David Sterba Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index d89c6d3542c..977717b45bf 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1981,9 +1981,6 @@ int btrfs_clean_one_deleted_snapshot(struct btrfs_root *root) ret = btrfs_drop_snapshot(root, NULL, 0, 0); else ret = btrfs_drop_snapshot(root, NULL, 1, 0); - /* - * If we encounter a transaction abort during snapshot cleaning, we - * don't want to crash here - */ + return (ret < 0) ? 0 : 1; }