aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 60a45f3a4e91..7bb66c65ddfd 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -4146,7 +4146,8 @@ again:
4146 * advance the path if there are now more items available. 4146 * advance the path if there are now more items available.
4147 */ 4147 */
4148 if (nritems > 0 && path->slots[0] < nritems - 1) { 4148 if (nritems > 0 && path->slots[0] < nritems - 1) {
4149 path->slots[0]++; 4149 if (ret == 0)
4150 path->slots[0]++;
4150 ret = 0; 4151 ret = 0;
4151 goto done; 4152 goto done;
4152 } 4153 }