Message ID | 3d0408631001310434g35b1fa4cp8a42068ef5fa5a34@mail.gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
diff -urp 1/fs/btrfs/extent-tree.c 2/fs/btrfs/extent-tree.c --- 1/fs/btrfs/extent-tree.c 2010-01-22 12:16:34.203525744 +0800 +++ 2/fs/btrfs/extent-tree.c 2010-01-31 20:09:08.509200892 +0800 @@ -5402,14 +5402,14 @@ static noinline int walk_down_tree(struc int ret; while (level >= 0) { - if (path->slots[level] >= - btrfs_header_nritems(path->nodes[level])) - break; - ret = walk_down_proc(trans, root, path, wc, lookup_info); if (ret > 0) break; + if (path->slots[level] >= + btrfs_header_nritems(path->nodes[level])) + break; + if (level == 0) break;