mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ext3: Fix set but unused variables
[[email protected]: Fix compilation with CONFIG_JBD_DEBUG enabled] Acked-by: [email protected] cc: [email protected] Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
189eef59e7
commit
0411ba7902
4 changed files with 3 additions and 20 deletions
|
|
@ -1447,7 +1447,6 @@ static int ext3_add_entry (handle_t *handle, struct dentry *dentry,
|
|||
struct inode *inode)
|
||||
{
|
||||
struct inode *dir = dentry->d_parent->d_inode;
|
||||
unsigned long offset;
|
||||
struct buffer_head * bh;
|
||||
struct ext3_dir_entry_2 *de;
|
||||
struct super_block * sb;
|
||||
|
|
@ -1469,7 +1468,7 @@ static int ext3_add_entry (handle_t *handle, struct dentry *dentry,
|
|||
ext3_mark_inode_dirty(handle, dir);
|
||||
}
|
||||
blocks = dir->i_size >> sb->s_blocksize_bits;
|
||||
for (block = 0, offset = 0; block < blocks; block++) {
|
||||
for (block = 0; block < blocks; block++) {
|
||||
bh = ext3_bread(handle, dir, block, 0, &retval);
|
||||
if(!bh)
|
||||
return retval;
|
||||
|
|
|
|||
|
|
@ -964,7 +964,6 @@ int ext3_group_extend(struct super_block *sb, struct ext3_super_block *es,
|
|||
ext3_fsblk_t n_blocks_count)
|
||||
{
|
||||
ext3_fsblk_t o_blocks_count;
|
||||
unsigned long o_groups_count;
|
||||
ext3_grpblk_t last;
|
||||
ext3_grpblk_t add;
|
||||
struct buffer_head * bh;
|
||||
|
|
@ -976,7 +975,6 @@ int ext3_group_extend(struct super_block *sb, struct ext3_super_block *es,
|
|||
* yet: we're going to revalidate es->s_blocks_count after
|
||||
* taking the s_resize_lock below. */
|
||||
o_blocks_count = le32_to_cpu(es->s_blocks_count);
|
||||
o_groups_count = EXT3_SB(sb)->s_groups_count;
|
||||
|
||||
if (test_opt(sb, DEBUG))
|
||||
printk(KERN_DEBUG "EXT3-fs: extending last group from "E3FSBLK" uto "E3FSBLK" blocks\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue