@@ -955,8 +955,7 @@ int ocfs2_read_extent_block(struct ocfs2_caching_info *ci, u64 eb_blkno,
955955/*
956956 * How many free extents have we got before we need more meta data?
957957 */
958- int ocfs2_num_free_extents (struct ocfs2_super * osb ,
959- struct ocfs2_extent_tree * et )
958+ int ocfs2_num_free_extents (struct ocfs2_extent_tree * et )
960959{
961960 int retval ;
962961 struct ocfs2_extent_list * el = NULL ;
@@ -1933,14 +1932,12 @@ int ocfs2_find_leaf(struct ocfs2_caching_info *ci,
19331932 * the new changes.
19341933 *
19351934 * left_rec: the record on the left.
1936- * left_child_el: is the child list pointed to by left_rec
19371935 * right_rec: the record to the right of left_rec
19381936 * right_child_el: is the child list pointed to by right_rec
19391937 *
19401938 * By definition, this only works on interior nodes.
19411939 */
19421940static void ocfs2_adjust_adjacent_records (struct ocfs2_extent_rec * left_rec ,
1943- struct ocfs2_extent_list * left_child_el ,
19441941 struct ocfs2_extent_rec * right_rec ,
19451942 struct ocfs2_extent_list * right_child_el )
19461943{
@@ -2003,7 +2000,7 @@ static void ocfs2_adjust_root_records(struct ocfs2_extent_list *root_el,
20032000 */
20042001 BUG_ON (i >= (le16_to_cpu (root_el -> l_next_free_rec ) - 1 ));
20052002
2006- ocfs2_adjust_adjacent_records (& root_el -> l_recs [i ], left_el ,
2003+ ocfs2_adjust_adjacent_records (& root_el -> l_recs [i ],
20072004 & root_el -> l_recs [i + 1 ], right_el );
20082005}
20092006
@@ -2060,8 +2057,7 @@ static void ocfs2_complete_edge_insert(handle_t *handle,
20602057 el = right_path -> p_node [i ].el ;
20612058 right_rec = & el -> l_recs [0 ];
20622059
2063- ocfs2_adjust_adjacent_records (left_rec , left_el , right_rec ,
2064- right_el );
2060+ ocfs2_adjust_adjacent_records (left_rec , right_rec , right_el );
20652061
20662062 ocfs2_journal_dirty (handle , left_path -> p_node [i ].bh );
20672063 ocfs2_journal_dirty (handle , right_path -> p_node [i ].bh );
@@ -2509,7 +2505,7 @@ static int ocfs2_rotate_tree_right(handle_t *handle,
25092505
25102506static int ocfs2_update_edge_lengths (handle_t * handle ,
25112507 struct ocfs2_extent_tree * et ,
2512- int subtree_index , struct ocfs2_path * path )
2508+ struct ocfs2_path * path )
25132509{
25142510 int i , idx , ret ;
25152511 struct ocfs2_extent_rec * rec ;
@@ -2755,8 +2751,7 @@ static int ocfs2_rotate_subtree_left(handle_t *handle,
27552751 if (del_right_subtree ) {
27562752 ocfs2_unlink_subtree (handle , et , left_path , right_path ,
27572753 subtree_index , dealloc );
2758- ret = ocfs2_update_edge_lengths (handle , et , subtree_index ,
2759- left_path );
2754+ ret = ocfs2_update_edge_lengths (handle , et , left_path );
27602755 if (ret ) {
27612756 mlog_errno (ret );
27622757 goto out ;
@@ -3060,8 +3055,7 @@ static int ocfs2_remove_rightmost_path(handle_t *handle,
30603055
30613056 ocfs2_unlink_subtree (handle , et , left_path , path ,
30623057 subtree_index , dealloc );
3063- ret = ocfs2_update_edge_lengths (handle , et , subtree_index ,
3064- left_path );
3058+ ret = ocfs2_update_edge_lengths (handle , et , left_path );
30653059 if (ret ) {
30663060 mlog_errno (ret );
30673061 goto out ;
@@ -4790,7 +4784,7 @@ int ocfs2_add_clusters_in_btree(handle_t *handle,
47904784 if (mark_unwritten )
47914785 flags = OCFS2_EXT_UNWRITTEN ;
47924786
4793- free_extents = ocfs2_num_free_extents (osb , et );
4787+ free_extents = ocfs2_num_free_extents (et );
47944788 if (free_extents < 0 ) {
47954789 status = free_extents ;
47964790 mlog_errno (status );
@@ -5668,7 +5662,7 @@ static int ocfs2_reserve_blocks_for_rec_trunc(struct inode *inode,
56685662
56695663 * ac = NULL ;
56705664
5671- num_free_extents = ocfs2_num_free_extents (osb , et );
5665+ num_free_extents = ocfs2_num_free_extents (et );
56725666 if (num_free_extents < 0 ) {
56735667 ret = num_free_extents ;
56745668 mlog_errno (ret );
0 commit comments