ctree.c (a22180d2666c018f4fef6818074d78bb76ff2bda) | ctree.c (4c3e696981a565aace08678e70c40709a85f9b2b) |
---|---|
1/* 2 * Copyright (C) 2007,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, --- 1124 unchanged lines hidden (view full) --- 1133 /* 1134 * all the operations are recorded with the operator used for 1135 * the modification. as we're going backwards, we do the 1136 * opposite of each operation here. 1137 */ 1138 switch (tm->op) { 1139 case MOD_LOG_KEY_REMOVE_WHILE_FREEING: 1140 BUG_ON(tm->slot < n); | 1/* 2 * Copyright (C) 2007,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, --- 1124 unchanged lines hidden (view full) --- 1133 /* 1134 * all the operations are recorded with the operator used for 1135 * the modification. as we're going backwards, we do the 1136 * opposite of each operation here. 1137 */ 1138 switch (tm->op) { 1139 case MOD_LOG_KEY_REMOVE_WHILE_FREEING: 1140 BUG_ON(tm->slot < n); |
1141 case MOD_LOG_KEY_REMOVE: 1142 n++; | |
1143 case MOD_LOG_KEY_REMOVE_WHILE_MOVING: | 1141 case MOD_LOG_KEY_REMOVE_WHILE_MOVING: |
1142 case MOD_LOG_KEY_REMOVE: |
|
1144 btrfs_set_node_key(eb, &tm->key, tm->slot); 1145 btrfs_set_node_blockptr(eb, tm->slot, tm->blockptr); 1146 btrfs_set_node_ptr_generation(eb, tm->slot, 1147 tm->generation); | 1143 btrfs_set_node_key(eb, &tm->key, tm->slot); 1144 btrfs_set_node_blockptr(eb, tm->slot, tm->blockptr); 1145 btrfs_set_node_ptr_generation(eb, tm->slot, 1146 tm->generation); |
1147 n++; |
|
1148 break; 1149 case MOD_LOG_KEY_REPLACE: 1150 BUG_ON(tm->slot >= n); 1151 btrfs_set_node_key(eb, &tm->key, tm->slot); 1152 btrfs_set_node_blockptr(eb, tm->slot, tm->blockptr); 1153 btrfs_set_node_ptr_generation(eb, tm->slot, 1154 tm->generation); 1155 break; --- 4677 unchanged lines hidden --- | 1148 break; 1149 case MOD_LOG_KEY_REPLACE: 1150 BUG_ON(tm->slot >= n); 1151 btrfs_set_node_key(eb, &tm->key, tm->slot); 1152 btrfs_set_node_blockptr(eb, tm->slot, tm->blockptr); 1153 btrfs_set_node_ptr_generation(eb, tm->slot, 1154 tm->generation); 1155 break; --- 4677 unchanged lines hidden --- |