Patchwork ext4: remove some unused code lines

login
register
mail settings
Submitter Zhiyong Wu
Date Dec. 3, 2012, 2:25 a.m.
Message ID <1354501534-23655-1-git-send-email-zwu.kernel@gmail.com>
Download mbox | patch
Permalink /patch/203261/
State Accepted, archived
Headers show

Comments

Zhiyong Wu - Dec. 3, 2012, 2:25 a.m.
From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

  In ext4_ext_in_cache(), some codes are redundant,
this patch will remove them.

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 fs/ext4/extents.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 7011ac9..43ec639 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2156,7 +2156,6 @@  ext4_ext_in_cache(struct inode *inode, ext4_lblk_t block,
 		  struct ext4_extent *ex)
 {
 	struct ext4_ext_cache *cex;
-	struct ext4_sb_info *sbi;
 	int ret = 0;
 
 	/*
@@ -2164,7 +2163,6 @@  ext4_ext_in_cache(struct inode *inode, ext4_lblk_t block,
 	 */
 	spin_lock(&EXT4_I(inode)->i_block_reservation_lock);
 	cex = &EXT4_I(inode)->i_cached_extent;
-	sbi = EXT4_SB(inode->i_sb);
 
 	/* has cache valid data? */
 	if (cex->ec_len == 0)