On Tue, Jun 28, 2016 at 06:55:48PM -0700, Liu Bo wrote:
quoted hunk ↗ jump to hunk
@@ -5238,6 +5256,10 @@ static void tree_move_down(struct btrfs_root *root,
path->slots[*level]);
path->slots[*level - 1] = 0;
(*level)--;
+
+ if (IS_ERR(path->nodes[*level - 1]))
+ return PTR_ERR(path->nodes[*level - 1]);
Is this right? *level changes since the call to read_node_slot so I
don't understand which value are we actually testing for error.
Otherwise looks good.
+ return 0;
}