commit | 081e95736d9118a96e9f6dcc5cec02dc75c9e1cb | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Tue Nov 06 10:26:24 2007 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:03:57 2008 -0400 |
tree | 41c1b692a0ba44223cadae5d78bc3446f963dca1 | |
parent | c549228ff63498025bf0b065c5a5909a06f21647 [diff] [blame] |
Btrfs: Make defrag check nodes against the progress key to prevent repeating work Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c index 65ef123..6ef1ba5f 100644 --- a/fs/btrfs/tree-defrag.c +++ b/fs/btrfs/tree-defrag.c
@@ -227,7 +227,8 @@ break; if (wret < 0) ret = wret; - ret = -EAGAIN; + else + ret = -EAGAIN; break; } for (i = 0; i <= orig_level; i++) {