Skip to content

Commit dd7b5f9

Browse files
Changwei Getorvalds
authored andcommitted
ocfs2: clean dead code in suballoc.c
Stack variable fe is no longer used, so trim it to save some CPU cycles and stack space. Link: http://lkml.kernel.org/r/63ADC13FD55D6546B7DECE290D39E373F1F5A8DD@H3CMLB14-EX.srv.huawei-3com.com Signed-off-by: Changwei Ge <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Changwei Ge <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 32ed0bd commit dd7b5f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/ocfs2/suballoc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,16 +2563,16 @@ static int _ocfs2_free_clusters(handle_t *handle,
25632563
int status;
25642564
u16 bg_start_bit;
25652565
u64 bg_blkno;
2566-
struct ocfs2_dinode *fe;
25672566

25682567
/* You can't ever have a contiguous set of clusters
25692568
* bigger than a block group bitmap so we never have to worry
25702569
* about looping on them.
25712570
* This is expensive. We can safely remove once this stuff has
25722571
* gotten tested really well. */
2573-
BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, ocfs2_blocks_to_clusters(bitmap_inode->i_sb, start_blk)));
2572+
BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb,
2573+
ocfs2_blocks_to_clusters(bitmap_inode->i_sb,
2574+
start_blk)));
25742575

2575-
fe = (struct ocfs2_dinode *) bitmap_bh->b_data;
25762576

25772577
ocfs2_block_to_cluster_group(bitmap_inode, start_blk, &bg_blkno,
25782578
&bg_start_bit);

0 commit comments

Comments
 (0)