aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2011-03-23 14:08:27 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-03-23 14:08:27 -0400
commit65922cb5ced76ba7182e955d4aada96f93446b1a (patch)
tree2d6b7f56f226e7e17f67f642775a2ec0a32c7e17 /fs/ext4/extents.c
parent6de9843dab3f2a1d4d66d80aa9e5782f80977d20 (diff)
ext4: unused variables cleanup in fs/ext4/extents.c
ext4 extents cleanup: . remove unused `*ex' from check_eofblocks_fl . remove unused `*eh' from ext4_ext_map_blocks Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index f46f6e3c02d7..1763d1ab9ea9 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3112,14 +3112,13 @@ static int check_eofblocks_fl(handle_t *handle, struct inode *inode,
3112{ 3112{
3113 int i, depth; 3113 int i, depth;
3114 struct ext4_extent_header *eh; 3114 struct ext4_extent_header *eh;
3115 struct ext4_extent *ex, *last_ex; 3115 struct ext4_extent *last_ex;
3116 3116
3117 if (!ext4_test_inode_flag(inode, EXT4_INODE_EOFBLOCKS)) 3117 if (!ext4_test_inode_flag(inode, EXT4_INODE_EOFBLOCKS))
3118 return 0; 3118 return 0;
3119 3119
3120 depth = ext_depth(inode); 3120 depth = ext_depth(inode);
3121 eh = path[depth].p_hdr; 3121 eh = path[depth].p_hdr;
3122 ex = path[depth].p_ext;
3123 3122
3124 if (unlikely(!eh->eh_entries)) { 3123 if (unlikely(!eh->eh_entries)) {
3125 EXT4_ERROR_INODE(inode, "eh->eh_entries == 0 and " 3124 EXT4_ERROR_INODE(inode, "eh->eh_entries == 0 and "
@@ -3299,7 +3298,6 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
3299 struct ext4_map_blocks *map, int flags) 3298 struct ext4_map_blocks *map, int flags)
3300{ 3299{
3301 struct ext4_ext_path *path = NULL; 3300 struct ext4_ext_path *path = NULL;
3302 struct ext4_extent_header *eh;
3303 struct ext4_extent newex, *ex; 3301 struct ext4_extent newex, *ex;
3304 ext4_fsblk_t newblock = 0; 3302 ext4_fsblk_t newblock = 0;
3305 int err = 0, depth, ret; 3303 int err = 0, depth, ret;
@@ -3357,7 +3355,6 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
3357 err = -EIO; 3355 err = -EIO;
3358 goto out2; 3356 goto out2;
3359 } 3357 }
3360 eh = path[depth].p_hdr;
3361 3358
3362 ex = path[depth].p_ext; 3359 ex = path[depth].p_ext;
3363 if (ex) { 3360 if (ex) {