diff options
| author | Olof Johansson <olof@lixom.net> | 2012-09-05 15:35:48 -0700 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-09-05 15:35:48 -0700 | 
| commit | 1875962377574b4edb7b164001e3e341c25290d5 (patch) | |
| tree | 374a5299403ec21e2d9a66a6548ce876a388b589 /fs/ext4/super.c | |
| parent | 5cbee140a28c2746449ae31e85738043ae4da927 (diff) | |
| parent | c88a79a7789b2909ad1cf69ea2c9142030bbd6f4 (diff) | |
| download | olio-linux-3.10-1875962377574b4edb7b164001e3e341c25290d5.tar.xz olio-linux-3.10-1875962377574b4edb7b164001e3e341c25290d5.zip  | |
Merge branch 'soc-core' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/dt
* 'soc-core' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
  ARM: mach-shmobile: Add compilation support for dtbs using 'make dtbs'
  + sync to 3.6-rc3
Diffstat (limited to 'fs/ext4/super.c')
| -rw-r--r-- | fs/ext4/super.c | 17 | 
1 files changed, 6 insertions, 11 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d76ec8277d3..c6e0cb3d1f4 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -326,11 +326,6 @@ static void ext4_put_nojournal(handle_t *handle)  /*   * Wrappers for jbd2_journal_start/end. - * - * The only special thing we need to do here is to make sure that all - * journal_end calls result in the superblock being marked dirty, so - * that sync() will call the filesystem's write_super callback if - * appropriate.   */  handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks)  { @@ -356,12 +351,6 @@ handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks)  	return jbd2_journal_start(journal, nblocks);  } -/* - * The only special thing we need to do here is to make sure that all - * jbd2_journal_stop calls result in the superblock being marked dirty, so - * that sync() will call the filesystem's write_super callback if - * appropriate. - */  int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle)  {  	struct super_block *sb; @@ -959,6 +948,7 @@ static struct inode *ext4_alloc_inode(struct super_block *sb)  	ei->i_reserved_meta_blocks = 0;  	ei->i_allocated_meta_blocks = 0;  	ei->i_da_metadata_calc_len = 0; +	ei->i_da_metadata_calc_last_lblock = 0;  	spin_lock_init(&(ei->i_block_reservation_lock));  #ifdef CONFIG_QUOTA  	ei->i_reserved_quota = 0; @@ -3119,6 +3109,10 @@ static int count_overhead(struct super_block *sb, ext4_group_t grp,  	ext4_group_t		i, ngroups = ext4_get_groups_count(sb);  	int			s, j, count = 0; +	if (!EXT4_HAS_RO_COMPAT_FEATURE(sb, EXT4_FEATURE_RO_COMPAT_BIGALLOC)) +		return (ext4_bg_has_super(sb, grp) + ext4_bg_num_gdb(sb, grp) + +			sbi->s_itb_per_group + 2); +  	first_block = le32_to_cpu(sbi->s_es->s_first_data_block) +  		(grp * EXT4_BLOCKS_PER_GROUP(sb));  	last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1; @@ -4430,6 +4424,7 @@ static void ext4_clear_journal_err(struct super_block *sb,  		ext4_commit_super(sb, 1);  		jbd2_journal_clear_err(journal); +		jbd2_journal_update_sb_errno(journal);  	}  }  |