tree-log.c (269d040ff2f340e1ed517dab8b66b2f133c83a77) tree-log.c (fae7f21cece9a4c181a8d8131870c7247e153f65)
1/*
2 * Copyright (C) 2008 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 2116 unchanged lines hidden (view full) ---

2125 WARN_ON(*level < 0);
2126 WARN_ON(*level >= BTRFS_MAX_LEVEL);
2127
2128 while (*level > 0) {
2129 WARN_ON(*level < 0);
2130 WARN_ON(*level >= BTRFS_MAX_LEVEL);
2131 cur = path->nodes[*level];
2132
1/*
2 * Copyright (C) 2008 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 2116 unchanged lines hidden (view full) ---

2125 WARN_ON(*level < 0);
2126 WARN_ON(*level >= BTRFS_MAX_LEVEL);
2127
2128 while (*level > 0) {
2129 WARN_ON(*level < 0);
2130 WARN_ON(*level >= BTRFS_MAX_LEVEL);
2131 cur = path->nodes[*level];
2132
2133 if (btrfs_header_level(cur) != *level)
2134 WARN_ON(1);
2133 WARN_ON(btrfs_header_level(cur) != *level);
2135
2136 if (path->slots[*level] >=
2137 btrfs_header_nritems(cur))
2138 break;
2139
2140 bytenr = btrfs_node_blockptr(cur, path->slots[*level]);
2141 ptr_gen = btrfs_node_ptr_generation(cur, path->slots[*level]);
2142 blocksize = btrfs_level_size(root, *level - 1);

--- 803 unchanged lines hidden (view full) ---

2946 goto done;
2947 }
2948 }
2949 }
2950 btrfs_release_path(path);
2951
2952 /* find the first key from this transaction again */
2953 ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0);
2134
2135 if (path->slots[*level] >=
2136 btrfs_header_nritems(cur))
2137 break;
2138
2139 bytenr = btrfs_node_blockptr(cur, path->slots[*level]);
2140 ptr_gen = btrfs_node_ptr_generation(cur, path->slots[*level]);
2141 blocksize = btrfs_level_size(root, *level - 1);

--- 803 unchanged lines hidden (view full) ---

2945 goto done;
2946 }
2947 }
2948 }
2949 btrfs_release_path(path);
2950
2951 /* find the first key from this transaction again */
2952 ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0);
2954 if (ret != 0) {
2955 WARN_ON(1);
2953 if (WARN_ON(ret != 0))
2956 goto done;
2954 goto done;
2957 }
2958
2959 /*
2960 * we have a block from this transaction, log every item in it
2961 * from our directory
2962 */
2963 while (1) {
2964 struct btrfs_key tmp;
2965 src = path->nodes[0];

--- 1297 unchanged lines hidden ---
2955
2956 /*
2957 * we have a block from this transaction, log every item in it
2958 * from our directory
2959 */
2960 while (1) {
2961 struct btrfs_key tmp;
2962 src = path->nodes[0];

--- 1297 unchanged lines hidden ---