Skip to content

Commit

Permalink
ext4: remove unused variable from ext4_ext_in_cache()
Browse files Browse the repository at this point in the history
Signed-off-by: "Theodore Ts'o" <[email protected]>
Signed-off-by: Zhi Yong Wu <[email protected]>
Reviewed-by: Zheng Liu <[email protected]>
  • Loading branch information
Zhi Yong Wu authored and tytso committed Dec 10, 2012
1 parent 6b280c9 commit 187fd03
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2194,15 +2194,13 @@ 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;

/*
* We borrow i_block_reservation_lock to protect i_cached_extent
*/
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)
Expand Down

0 comments on commit 187fd03

Please sign in to comment.