diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:39 -0400 |
commit | 0222e6571c332563a48d4cf5487b67feabe60b5e (patch) | |
tree | 44829ca0a4b1343edec08d4f70696cb0d3218975 /fs/reiserfs/lbalance.c | |
parent | 3cd6dbe6feb9b32347e6c6f25a27f0cde9d50418 (diff) |
reiserfs: strip trailing whitespace
This patch strips trailing whitespace from the reiserfs code.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/lbalance.c')
-rw-r--r-- | fs/reiserfs/lbalance.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/reiserfs/lbalance.c b/fs/reiserfs/lbalance.c index 21a171ceba1d..381750a155f6 100644 --- a/fs/reiserfs/lbalance.c +++ b/fs/reiserfs/lbalance.c | |||
@@ -119,8 +119,8 @@ static void leaf_copy_dir_entries(struct buffer_info *dest_bi, | |||
119 | DEH_SIZE * copy_count + copy_records_len); | 119 | DEH_SIZE * copy_count + copy_records_len); |
120 | } | 120 | } |
121 | 121 | ||
122 | /* Copy the first (if last_first == FIRST_TO_LAST) or last (last_first == LAST_TO_FIRST) item or | 122 | /* Copy the first (if last_first == FIRST_TO_LAST) or last (last_first == LAST_TO_FIRST) item or |
123 | part of it or nothing (see the return 0 below) from SOURCE to the end | 123 | part of it or nothing (see the return 0 below) from SOURCE to the end |
124 | (if last_first) or beginning (!last_first) of the DEST */ | 124 | (if last_first) or beginning (!last_first) of the DEST */ |
125 | /* returns 1 if anything was copied, else 0 */ | 125 | /* returns 1 if anything was copied, else 0 */ |
126 | static int leaf_copy_boundary_item(struct buffer_info *dest_bi, | 126 | static int leaf_copy_boundary_item(struct buffer_info *dest_bi, |
@@ -396,7 +396,7 @@ static void leaf_item_bottle(struct buffer_info *dest_bi, | |||
396 | else { | 396 | else { |
397 | struct item_head n_ih; | 397 | struct item_head n_ih; |
398 | 398 | ||
399 | /* copy part of the body of the item number 'item_num' of SOURCE to the end of the DEST | 399 | /* copy part of the body of the item number 'item_num' of SOURCE to the end of the DEST |
400 | part defined by 'cpy_bytes'; create new item header; change old item_header (????); | 400 | part defined by 'cpy_bytes'; create new item header; change old item_header (????); |
401 | n_ih = new item_header; | 401 | n_ih = new item_header; |
402 | */ | 402 | */ |
@@ -426,7 +426,7 @@ static void leaf_item_bottle(struct buffer_info *dest_bi, | |||
426 | else { | 426 | else { |
427 | struct item_head n_ih; | 427 | struct item_head n_ih; |
428 | 428 | ||
429 | /* copy part of the body of the item number 'item_num' of SOURCE to the begin of the DEST | 429 | /* copy part of the body of the item number 'item_num' of SOURCE to the begin of the DEST |
430 | part defined by 'cpy_bytes'; create new item header; | 430 | part defined by 'cpy_bytes'; create new item header; |
431 | n_ih = new item_header; | 431 | n_ih = new item_header; |
432 | */ | 432 | */ |
@@ -724,7 +724,7 @@ int leaf_shift_right(struct tree_balance *tb, int shift_num, int shift_bytes) | |||
724 | static void leaf_delete_items_entirely(struct buffer_info *bi, | 724 | static void leaf_delete_items_entirely(struct buffer_info *bi, |
725 | int first, int del_num); | 725 | int first, int del_num); |
726 | /* If del_bytes == -1, starting from position 'first' delete del_num items in whole in buffer CUR. | 726 | /* If del_bytes == -1, starting from position 'first' delete del_num items in whole in buffer CUR. |
727 | If not. | 727 | If not. |
728 | If last_first == 0. Starting from position 'first' delete del_num-1 items in whole. Delete part of body of | 728 | If last_first == 0. Starting from position 'first' delete del_num-1 items in whole. Delete part of body of |
729 | the first item. Part defined by del_bytes. Don't delete first item header | 729 | the first item. Part defined by del_bytes. Don't delete first item header |
730 | If last_first == 1. Starting from position 'first+1' delete del_num-1 items in whole. Delete part of body of | 730 | If last_first == 1. Starting from position 'first+1' delete del_num-1 items in whole. Delete part of body of |
@@ -783,7 +783,7 @@ void leaf_delete_items(struct buffer_info *cur_bi, int last_first, | |||
783 | /* len = body len of item */ | 783 | /* len = body len of item */ |
784 | len = ih_item_len(ih); | 784 | len = ih_item_len(ih); |
785 | 785 | ||
786 | /* delete the part of the last item of the bh | 786 | /* delete the part of the last item of the bh |
787 | do not delete item header | 787 | do not delete item header |
788 | */ | 788 | */ |
789 | leaf_cut_from_buffer(cur_bi, B_NR_ITEMS(bh) - 1, | 789 | leaf_cut_from_buffer(cur_bi, B_NR_ITEMS(bh) - 1, |
@@ -865,7 +865,7 @@ void leaf_insert_into_buf(struct buffer_info *bi, int before, | |||
865 | } | 865 | } |
866 | } | 866 | } |
867 | 867 | ||
868 | /* paste paste_size bytes to affected_item_num-th item. | 868 | /* paste paste_size bytes to affected_item_num-th item. |
869 | When item is a directory, this only prepare space for new entries */ | 869 | When item is a directory, this only prepare space for new entries */ |
870 | void leaf_paste_in_buffer(struct buffer_info *bi, int affected_item_num, | 870 | void leaf_paste_in_buffer(struct buffer_info *bi, int affected_item_num, |
871 | int pos_in_item, int paste_size, | 871 | int pos_in_item, int paste_size, |
@@ -1022,7 +1022,7 @@ static int leaf_cut_entries(struct buffer_head *bh, | |||
1022 | /* when cut item is part of regular file | 1022 | /* when cut item is part of regular file |
1023 | pos_in_item - first byte that must be cut | 1023 | pos_in_item - first byte that must be cut |
1024 | cut_size - number of bytes to be cut beginning from pos_in_item | 1024 | cut_size - number of bytes to be cut beginning from pos_in_item |
1025 | 1025 | ||
1026 | when cut item is part of directory | 1026 | when cut item is part of directory |
1027 | pos_in_item - number of first deleted entry | 1027 | pos_in_item - number of first deleted entry |
1028 | cut_size - count of deleted entries | 1028 | cut_size - count of deleted entries |
@@ -1275,7 +1275,7 @@ void leaf_paste_entries(struct buffer_info *bi, | |||
1275 | /* change item key if necessary (when we paste before 0-th entry */ | 1275 | /* change item key if necessary (when we paste before 0-th entry */ |
1276 | if (!before) { | 1276 | if (!before) { |
1277 | set_le_ih_k_offset(ih, deh_offset(new_dehs)); | 1277 | set_le_ih_k_offset(ih, deh_offset(new_dehs)); |
1278 | /* memcpy (&ih->ih_key.k_offset, | 1278 | /* memcpy (&ih->ih_key.k_offset, |
1279 | &new_dehs->deh_offset, SHORT_KEY_SIZE);*/ | 1279 | &new_dehs->deh_offset, SHORT_KEY_SIZE);*/ |
1280 | } | 1280 | } |
1281 | #ifdef CONFIG_REISERFS_CHECK | 1281 | #ifdef CONFIG_REISERFS_CHECK |