diff options
Diffstat (limited to 'fs/reiserfs/ibalance.c')
-rw-r--r-- | fs/reiserfs/ibalance.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/reiserfs/ibalance.c b/fs/reiserfs/ibalance.c index 063b5514fe29..2074fd95046b 100644 --- a/fs/reiserfs/ibalance.c +++ b/fs/reiserfs/ibalance.c | |||
@@ -278,7 +278,7 @@ static void internal_delete_childs(struct buffer_info *cur_bi, int from, int n) | |||
278 | 278 | ||
279 | /* copy cpy_num node pointers and cpy_num - 1 items from buffer src to buffer dest | 279 | /* copy cpy_num node pointers and cpy_num - 1 items from buffer src to buffer dest |
280 | * last_first == FIRST_TO_LAST means, that we copy first items from src to tail of dest | 280 | * last_first == FIRST_TO_LAST means, that we copy first items from src to tail of dest |
281 | * last_first == LAST_TO_FIRST means, that we copy last items from src to head of dest | 281 | * last_first == LAST_TO_FIRST means, that we copy last items from src to head of dest |
282 | */ | 282 | */ |
283 | static void internal_copy_pointers_items(struct buffer_info *dest_bi, | 283 | static void internal_copy_pointers_items(struct buffer_info *dest_bi, |
284 | struct buffer_head *src, | 284 | struct buffer_head *src, |
@@ -385,7 +385,7 @@ static void internal_move_pointers_items(struct buffer_info *dest_bi, | |||
385 | if (last_first == FIRST_TO_LAST) { /* shift_left occurs */ | 385 | if (last_first == FIRST_TO_LAST) { /* shift_left occurs */ |
386 | first_pointer = 0; | 386 | first_pointer = 0; |
387 | first_item = 0; | 387 | first_item = 0; |
388 | /* delete cpy_num - del_par pointers and keys starting for pointers with first_pointer, | 388 | /* delete cpy_num - del_par pointers and keys starting for pointers with first_pointer, |
389 | for key - with first_item */ | 389 | for key - with first_item */ |
390 | internal_delete_pointers_items(src_bi, first_pointer, | 390 | internal_delete_pointers_items(src_bi, first_pointer, |
391 | first_item, cpy_num - del_par); | 391 | first_item, cpy_num - del_par); |
@@ -453,7 +453,7 @@ static void internal_insert_key(struct buffer_info *dest_bi, int dest_position_b | |||
453 | } | 453 | } |
454 | } | 454 | } |
455 | 455 | ||
456 | /* Insert d_key'th (delimiting) key from buffer cfl to tail of dest. | 456 | /* Insert d_key'th (delimiting) key from buffer cfl to tail of dest. |
457 | * Copy pointer_amount node pointers and pointer_amount - 1 items from buffer src to buffer dest. | 457 | * Copy pointer_amount node pointers and pointer_amount - 1 items from buffer src to buffer dest. |
458 | * Replace d_key'th key in buffer cfl. | 458 | * Replace d_key'th key in buffer cfl. |
459 | * Delete pointer_amount items and node pointers from buffer src. | 459 | * Delete pointer_amount items and node pointers from buffer src. |
@@ -518,7 +518,7 @@ static void internal_shift1_left(struct tree_balance *tb, | |||
518 | /* internal_move_pointers_items (tb->L[h], tb->S[h], FIRST_TO_LAST, pointer_amount, 1); */ | 518 | /* internal_move_pointers_items (tb->L[h], tb->S[h], FIRST_TO_LAST, pointer_amount, 1); */ |
519 | } | 519 | } |
520 | 520 | ||
521 | /* Insert d_key'th (delimiting) key from buffer cfr to head of dest. | 521 | /* Insert d_key'th (delimiting) key from buffer cfr to head of dest. |
522 | * Copy n node pointers and n - 1 items from buffer src to buffer dest. | 522 | * Copy n node pointers and n - 1 items from buffer src to buffer dest. |
523 | * Replace d_key'th key in buffer cfr. | 523 | * Replace d_key'th key in buffer cfr. |
524 | * Delete n items and node pointers from buffer src. | 524 | * Delete n items and node pointers from buffer src. |
@@ -749,7 +749,7 @@ int balance_internal(struct tree_balance *tb, /* tree_balance structure | |||
749 | this means that new pointers and items must be inserted AFTER * | 749 | this means that new pointers and items must be inserted AFTER * |
750 | child_pos | 750 | child_pos |
751 | } | 751 | } |
752 | else | 752 | else |
753 | { | 753 | { |
754 | it is the position of the leftmost pointer that must be deleted (together with | 754 | it is the position of the leftmost pointer that must be deleted (together with |
755 | its corresponding key to the left of the pointer) | 755 | its corresponding key to the left of the pointer) |