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)
committerChris Mason <clm@fb.com>
Fri, 6 Mar 2015 01:28:30 +0000 (17:28 -0800)
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>
fs/btrfs/transaction.c

index 038fcf6..323c654 100644 (file)
@@ -1052,9 +1052,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;