aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/tail_conversion.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2009-03-30 14:02:45 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-30 15:16:39 -0400
commita9dd364358fbdc68faee5d20c2d648c320dc3cf0 (patch)
treeeffcf61e5e198083faff82dc1e0bd6071639fca8 /fs/reiserfs/tail_conversion.c
parent0222e6571c332563a48d4cf5487b67feabe60b5e (diff)
reiserfs: rename p_s_sb to sb
This patch is a simple s/p_s_sb/sb/g to the reiserfs code. This is the first in a series of patches to rip out some of the awful variable naming in reiserfs. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/tail_conversion.c')
-rw-r--r--fs/reiserfs/tail_conversion.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/reiserfs/tail_conversion.c b/fs/reiserfs/tail_conversion.c
index 0635cfe0f0b7..27311a5f0469 100644
--- a/fs/reiserfs/tail_conversion.c
+++ b/fs/reiserfs/tail_conversion.c
@@ -175,9 +175,9 @@ int indirect2direct(struct reiserfs_transaction_handle *th, struct inode *p_s_in
175 loff_t n_new_file_size, /* New file size. */ 175 loff_t n_new_file_size, /* New file size. */
176 char *p_c_mode) 176 char *p_c_mode)
177{ 177{
178 struct super_block *p_s_sb = p_s_inode->i_sb; 178 struct super_block *sb = p_s_inode->i_sb;
179 struct item_head s_ih; 179 struct item_head s_ih;
180 unsigned long n_block_size = p_s_sb->s_blocksize; 180 unsigned long n_block_size = sb->s_blocksize;
181 char *tail; 181 char *tail;
182 int tail_len, round_tail_len; 182 int tail_len, round_tail_len;
183 loff_t pos, pos1; /* position of first byte of the tail */ 183 loff_t pos, pos1; /* position of first byte of the tail */
@@ -185,7 +185,7 @@ int indirect2direct(struct reiserfs_transaction_handle *th, struct inode *p_s_in
185 185
186 BUG_ON(!th->t_trans_id); 186 BUG_ON(!th->t_trans_id);
187 187
188 REISERFS_SB(p_s_sb)->s_indirect2direct++; 188 REISERFS_SB(sb)->s_indirect2direct++;
189 189
190 *p_c_mode = M_SKIP_BALANCING; 190 *p_c_mode = M_SKIP_BALANCING;
191 191
@@ -200,7 +200,7 @@ int indirect2direct(struct reiserfs_transaction_handle *th, struct inode *p_s_in
200 200
201 pos = 201 pos =
202 le_ih_k_offset(&s_ih) - 1 + (ih_item_len(&s_ih) / UNFM_P_SIZE - 202 le_ih_k_offset(&s_ih) - 1 + (ih_item_len(&s_ih) / UNFM_P_SIZE -
203 1) * p_s_sb->s_blocksize; 203 1) * sb->s_blocksize;
204 pos1 = pos; 204 pos1 = pos;
205 205
206 // we are protected by i_mutex. The tail can not disapper, not 206 // we are protected by i_mutex. The tail can not disapper, not
@@ -211,18 +211,18 @@ int indirect2direct(struct reiserfs_transaction_handle *th, struct inode *p_s_in
211 211
212 if (path_changed(&s_ih, p_s_path)) { 212 if (path_changed(&s_ih, p_s_path)) {
213 /* re-search indirect item */ 213 /* re-search indirect item */
214 if (search_for_position_by_key(p_s_sb, p_s_item_key, p_s_path) 214 if (search_for_position_by_key(sb, p_s_item_key, p_s_path)
215 == POSITION_NOT_FOUND) 215 == POSITION_NOT_FOUND)
216 reiserfs_panic(p_s_sb, "PAP-5520", 216 reiserfs_panic(sb, "PAP-5520",
217 "item to be converted %K does not exist", 217 "item to be converted %K does not exist",
218 p_s_item_key); 218 p_s_item_key);
219 copy_item_head(&s_ih, PATH_PITEM_HEAD(p_s_path)); 219 copy_item_head(&s_ih, PATH_PITEM_HEAD(p_s_path));
220#ifdef CONFIG_REISERFS_CHECK 220#ifdef CONFIG_REISERFS_CHECK
221 pos = le_ih_k_offset(&s_ih) - 1 + 221 pos = le_ih_k_offset(&s_ih) - 1 +
222 (ih_item_len(&s_ih) / UNFM_P_SIZE - 222 (ih_item_len(&s_ih) / UNFM_P_SIZE -
223 1) * p_s_sb->s_blocksize; 223 1) * sb->s_blocksize;
224 if (pos != pos1) 224 if (pos != pos1)
225 reiserfs_panic(p_s_sb, "vs-5530", "tail position " 225 reiserfs_panic(sb, "vs-5530", "tail position "
226 "changed while we were reading it"); 226 "changed while we were reading it");
227#endif 227#endif
228 } 228 }