@@ -785,7 +785,7 @@ static int get_empty_nodes(struct tree_balance *p_s_tb, int n_h)
785785 b_blocknr_t * p_n_blocknr , a_n_blocknrs [MAX_AMOUNT_NEEDED ] = { 0 , };
786786 int n_counter , n_number_of_freeblk , n_amount_needed , /* number of needed empty blocks */
787787 n_retval = CARRY_ON ;
788- struct super_block * p_s_sb = p_s_tb -> tb_sb ;
788+ struct super_block * sb = p_s_tb -> tb_sb ;
789789
790790 /* number_of_freeblk is the number of empty blocks which have been
791791 acquired for use by the balancing algorithm minus the number of
@@ -830,7 +830,7 @@ static int get_empty_nodes(struct tree_balance *p_s_tb, int n_h)
830830 RFALSE (!* p_n_blocknr ,
831831 "PAP-8135: reiserfs_new_blocknrs failed when got new blocks" );
832832
833- p_s_new_bh = sb_getblk (p_s_sb , * p_n_blocknr );
833+ p_s_new_bh = sb_getblk (sb , * p_n_blocknr );
834834 RFALSE (buffer_dirty (p_s_new_bh ) ||
835835 buffer_journaled (p_s_new_bh ) ||
836836 buffer_journal_dirty (p_s_new_bh ),
@@ -899,7 +899,7 @@ static int get_rfree(struct tree_balance *tb, int h)
899899static int is_left_neighbor_in_cache (struct tree_balance * p_s_tb , int n_h )
900900{
901901 struct buffer_head * p_s_father , * left ;
902- struct super_block * p_s_sb = p_s_tb -> tb_sb ;
902+ struct super_block * sb = p_s_tb -> tb_sb ;
903903 b_blocknr_t n_left_neighbor_blocknr ;
904904 int n_left_neighbor_position ;
905905
@@ -924,7 +924,7 @@ static int is_left_neighbor_in_cache(struct tree_balance *p_s_tb, int n_h)
924924 n_left_neighbor_blocknr =
925925 B_N_CHILD_NUM (p_s_tb -> FL [n_h ], n_left_neighbor_position );
926926 /* Look for the left neighbor in the cache. */
927- if ((left = sb_find_get_block (p_s_sb , n_left_neighbor_blocknr ))) {
927+ if ((left = sb_find_get_block (sb , n_left_neighbor_blocknr ))) {
928928
929929 RFALSE (buffer_uptodate (left ) && !B_IS_IN_TREE (left ),
930930 "vs-8170: left neighbor (%b %z) is not in the tree" ,
@@ -1942,14 +1942,14 @@ static int get_neighbors(struct tree_balance *p_s_tb, int n_h)
19421942 int n_child_position ,
19431943 n_path_offset = PATH_H_PATH_OFFSET (p_s_tb -> tb_path , n_h + 1 );
19441944 unsigned long n_son_number ;
1945- struct super_block * p_s_sb = p_s_tb -> tb_sb ;
1945+ struct super_block * sb = p_s_tb -> tb_sb ;
19461946 struct buffer_head * p_s_bh ;
19471947
1948- PROC_INFO_INC (p_s_sb , get_neighbors [n_h ]);
1948+ PROC_INFO_INC (sb , get_neighbors [n_h ]);
19491949
19501950 if (p_s_tb -> lnum [n_h ]) {
19511951 /* We need left neighbor to balance S[n_h]. */
1952- PROC_INFO_INC (p_s_sb , need_l_neighbor [n_h ]);
1952+ PROC_INFO_INC (sb , need_l_neighbor [n_h ]);
19531953 p_s_bh = PATH_OFFSET_PBUFFER (p_s_tb -> tb_path , n_path_offset );
19541954
19551955 RFALSE (p_s_bh == p_s_tb -> FL [n_h ] &&
@@ -1961,12 +1961,12 @@ static int get_neighbors(struct tree_balance *p_s_tb, int n_h)
19611961 p_s_tb -> FL [n_h ]) ? p_s_tb -> lkey [n_h ] : B_NR_ITEMS (p_s_tb ->
19621962 FL [n_h ]);
19631963 n_son_number = B_N_CHILD_NUM (p_s_tb -> FL [n_h ], n_child_position );
1964- p_s_bh = sb_bread (p_s_sb , n_son_number );
1964+ p_s_bh = sb_bread (sb , n_son_number );
19651965 if (!p_s_bh )
19661966 return IO_ERROR ;
19671967 if (FILESYSTEM_CHANGED_TB (p_s_tb )) {
19681968 brelse (p_s_bh );
1969- PROC_INFO_INC (p_s_sb , get_neighbors_restart [n_h ]);
1969+ PROC_INFO_INC (sb , get_neighbors_restart [n_h ]);
19701970 return REPEAT_SEARCH ;
19711971 }
19721972
@@ -1986,7 +1986,7 @@ static int get_neighbors(struct tree_balance *p_s_tb, int n_h)
19861986 }
19871987
19881988 if (p_s_tb -> rnum [n_h ]) { /* We need right neighbor to balance S[n_path_offset]. */
1989- PROC_INFO_INC (p_s_sb , need_r_neighbor [n_h ]);
1989+ PROC_INFO_INC (sb , need_r_neighbor [n_h ]);
19901990 p_s_bh = PATH_OFFSET_PBUFFER (p_s_tb -> tb_path , n_path_offset );
19911991
19921992 RFALSE (p_s_bh == p_s_tb -> FR [n_h ] &&
@@ -1998,12 +1998,12 @@ static int get_neighbors(struct tree_balance *p_s_tb, int n_h)
19981998 n_child_position =
19991999 (p_s_bh == p_s_tb -> FR [n_h ]) ? p_s_tb -> rkey [n_h ] + 1 : 0 ;
20002000 n_son_number = B_N_CHILD_NUM (p_s_tb -> FR [n_h ], n_child_position );
2001- p_s_bh = sb_bread (p_s_sb , n_son_number );
2001+ p_s_bh = sb_bread (sb , n_son_number );
20022002 if (!p_s_bh )
20032003 return IO_ERROR ;
20042004 if (FILESYSTEM_CHANGED_TB (p_s_tb )) {
20052005 brelse (p_s_bh );
2006- PROC_INFO_INC (p_s_sb , get_neighbors_restart [n_h ]);
2006+ PROC_INFO_INC (sb , get_neighbors_restart [n_h ]);
20072007 return REPEAT_SEARCH ;
20082008 }
20092009 brelse (p_s_tb -> R [n_h ]);
@@ -2089,51 +2089,51 @@ static int get_mem_for_virtual_node(struct tree_balance *tb)
20892089}
20902090
20912091#ifdef CONFIG_REISERFS_CHECK
2092- static void tb_buffer_sanity_check (struct super_block * p_s_sb ,
2092+ static void tb_buffer_sanity_check (struct super_block * sb ,
20932093 struct buffer_head * p_s_bh ,
20942094 const char * descr , int level )
20952095{
20962096 if (p_s_bh ) {
20972097 if (atomic_read (& (p_s_bh -> b_count )) <= 0 ) {
20982098
2099- reiserfs_panic (p_s_sb , "jmacd-1" , "negative or zero "
2099+ reiserfs_panic (sb , "jmacd-1" , "negative or zero "
21002100 "reference counter for buffer %s[%d] "
21012101 "(%b)" , descr , level , p_s_bh );
21022102 }
21032103
21042104 if (!buffer_uptodate (p_s_bh )) {
2105- reiserfs_panic (p_s_sb , "jmacd-2" , "buffer is not up "
2105+ reiserfs_panic (sb , "jmacd-2" , "buffer is not up "
21062106 "to date %s[%d] (%b)" ,
21072107 descr , level , p_s_bh );
21082108 }
21092109
21102110 if (!B_IS_IN_TREE (p_s_bh )) {
2111- reiserfs_panic (p_s_sb , "jmacd-3" , "buffer is not "
2111+ reiserfs_panic (sb , "jmacd-3" , "buffer is not "
21122112 "in tree %s[%d] (%b)" ,
21132113 descr , level , p_s_bh );
21142114 }
21152115
2116- if (p_s_bh -> b_bdev != p_s_sb -> s_bdev ) {
2117- reiserfs_panic (p_s_sb , "jmacd-4" , "buffer has wrong "
2116+ if (p_s_bh -> b_bdev != sb -> s_bdev ) {
2117+ reiserfs_panic (sb , "jmacd-4" , "buffer has wrong "
21182118 "device %s[%d] (%b)" ,
21192119 descr , level , p_s_bh );
21202120 }
21212121
2122- if (p_s_bh -> b_size != p_s_sb -> s_blocksize ) {
2123- reiserfs_panic (p_s_sb , "jmacd-5" , "buffer has wrong "
2122+ if (p_s_bh -> b_size != sb -> s_blocksize ) {
2123+ reiserfs_panic (sb , "jmacd-5" , "buffer has wrong "
21242124 "blocksize %s[%d] (%b)" ,
21252125 descr , level , p_s_bh );
21262126 }
21272127
2128- if (p_s_bh -> b_blocknr > SB_BLOCK_COUNT (p_s_sb )) {
2129- reiserfs_panic (p_s_sb , "jmacd-6" , "buffer block "
2128+ if (p_s_bh -> b_blocknr > SB_BLOCK_COUNT (sb )) {
2129+ reiserfs_panic (sb , "jmacd-6" , "buffer block "
21302130 "number too high %s[%d] (%b)" ,
21312131 descr , level , p_s_bh );
21322132 }
21332133 }
21342134}
21352135#else
2136- static void tb_buffer_sanity_check (struct super_block * p_s_sb ,
2136+ static void tb_buffer_sanity_check (struct super_block * sb ,
21372137 struct buffer_head * p_s_bh ,
21382138 const char * descr , int level )
21392139{;
0 commit comments