diff --git a/fs/ext4/super.c b/fs/ext4/super.c index ee0f30852835c397227ec5546432b3e246ad3fb4..a1cf7d68b4f068ed48859115ced0c3c3094d0454 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -4904,7 +4904,7 @@ static int ext4_commit_super(struct super_block *sb, int sync) ext4_superblock_csum_set(sb); if (sync) lock_buffer(sbh); - if (buffer_write_io_error(sbh)) { + if (buffer_write_io_error(sbh) || !buffer_uptodate(sbh)) { /* * Oh, dear. A previous attempt to write the * superblock failed. This could happen because the