]> git.hungrycats.org Git - linux/commitdiff
Btrfs: remove extra run_delayed_refs in update_cowonly_root
authorJosef Bacik <jbacik@fb.com>
Mon, 2 Mar 2015 17:51:02 +0000 (12:51 -0500)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sun, 19 Apr 2015 15:51:38 +0000 (11:51 -0400)
This got added with my dirty_bgs patch, it's not needed.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit f5c0a122800c301eecef93275b0c5d58bb4c15d9)

fs/btrfs/transaction.c

index 09843cd495179ddd4e67c3ff46c426b68b6b036d..010d7174353dc13eda64338315cce61267f9f736 100644 (file)
@@ -1049,9 +1049,6 @@ static int update_cowonly_root(struct btrfs_trans_handle *trans,
                ret = btrfs_run_delayed_refs(trans, root, (unsigned long)-1);
                if (ret)
                        return ret;
-               ret = btrfs_run_delayed_refs(trans, root, (unsigned long)-1);
-               if (ret)
-                       return ret;
        }
 
        return 0;