Btrfs: Make defrag check nodes against the progress key to prevent repeating work

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason
2007-11-06 10:26:24 -05:00
parent c549228ff6
commit 081e95736d
2 changed files with 34 additions and 25 deletions

View File

@@ -227,7 +227,8 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
break;
if (wret < 0)
ret = wret;
ret = -EAGAIN;
else
ret = -EAGAIN;
break;
}
for (i = 0; i <= orig_level; i++) {