diff options
Diffstat (limited to 'fs/ext2/super.c')
| -rw-r--r-- | fs/ext2/super.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 288534920fe..3750031cfa2 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -192,7 +192,7 @@ static void init_once(void *foo)  	inode_init_once(&ei->vfs_inode);  } -static int init_inodecache(void) +static int __init init_inodecache(void)  {  	ext2_inode_cachep = kmem_cache_create("ext2_inode_cache",  					     sizeof(struct ext2_inode_info), @@ -1254,6 +1254,7 @@ static int ext2_remount (struct super_block * sb, int * flags, char * data)  	unsigned long old_sb_flags;  	int err; +	sync_filesystem(sb);  	spin_lock(&sbi->s_lock);  	/* Store the old options */ @@ -1493,6 +1494,7 @@ static ssize_t ext2_quota_write(struct super_block *sb, int type,  				sb->s_blocksize - offset : towrite;  		tmp_bh.b_state = 0; +		tmp_bh.b_size = sb->s_blocksize;  		err = ext2_get_block(inode, blk, &tmp_bh, 1);  		if (err < 0)  			goto out;  | 
