Skip to contentSkip to conversation

ext4: remove some unused code lines

PATCH In review [email protected] 3 participants 4 messages Nov 29, 2012 – Dec 7, 2012 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: remove some unused code lines

From: Zhi Yong Wu <[email protected]>

---
 fs/ext4/extents.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/ext4/extents.c +0 -2
index 7011ac9..43ec639 100644
@@ -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)
Signature · 1 line
1.7.6.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · On Thu, Nov 29, 2012 at 06:00:00PM +0800, [email protected] wrote:

From: Zhi Yong Wu <[email protected]>

Please write a commit log to describe this patch, even though it is quite simple and straightfoward

Otherwise, it looks good to me.

Regards,
- Zheng

Quoted 33 lines
---
 fs/ext4/extents.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/ext4/extents.c +0 -2
index 7011ac9..43ec639 100644
@@ -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)
Signature · 6 lines
1.7.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 5 lines · Zheng Liu
Quoted 1 line · On Thu, Nov 29, 2012 at 06:00:00PM +0800, [email protected] wrote:

From: Zhi Yong Wu <[email protected]>

Please write a commit log to describe this patch, even though it is quite simple and straightfoward

Good suggestion, thanks.

Quoted 41 lines

Otherwise, it looks good to me.

Regards,
- Zheng

Quoted 33 lines
---
 fs/ext4/extents.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/ext4/extents.c +0 -3
index 7011ac9..43ec639 100644
@@ -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)
--

1.7.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Regards,

Zhi Yong Wu
maintainer
#3 lore raw
In reply to Zheng Liu
Quoted 9 lines · Zheng Liu
Quoted 1 line · On Thu, Nov 29, 2012 at 06:00:00PM +0800, [email protected] wrote:

From: Zhi Yong Wu <[email protected]>

Please write a commit log to describe this patch, even though it is quite simple and straightfoward

Otherwise, it looks good to me.

I've applied this patch with the description:

ext4: remove unused variable from ext4_ext_in_cache()

- Ted