aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r--fs/ext2/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index e3c748faf2db..932a2bcb6908 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -114,6 +114,9 @@ static void ext2_put_super (struct super_block * sb)
114 int i; 114 int i;
115 struct ext2_sb_info *sbi = EXT2_SB(sb); 115 struct ext2_sb_info *sbi = EXT2_SB(sb);
116 116
117 if (sb->s_dirt)
118 ext2_write_super(sb);
119
117 ext2_xattr_put_super(sb); 120 ext2_xattr_put_super(sb);
118 if (!(sb->s_flags & MS_RDONLY)) { 121 if (!(sb->s_flags & MS_RDONLY)) {
119 struct ext2_super_block *es = sbi->s_es; 122 struct ext2_super_block *es = sbi->s_es;