aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-defrag.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
-rw-r--r--fs/btrfs/tree-defrag.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c
index 65ef12351566..6ef1ba5f9c2f 100644
--- a/fs/btrfs/tree-defrag.c
+++ b/fs/btrfs/tree-defrag.c
@@ -227,7 +227,8 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
227 break; 227 break;
228 if (wret < 0) 228 if (wret < 0)
229 ret = wret; 229 ret = wret;
230 ret = -EAGAIN; 230 else
231 ret = -EAGAIN;
231 break; 232 break;
232 } 233 }
233 for (i = 0; i <= orig_level; i++) { 234 for (i = 0; i <= orig_level; i++) {