ext4: fix error handling in ext4_ext_shift_extents
[linux-2.6-microblaze.git] / fs / nilfs2 / recovery.c
index f1626f5..ff00a0b 100644 (file)
@@ -527,7 +527,8 @@ static int nilfs_recover_dsync_blocks(struct the_nilfs *nilfs,
                if (unlikely(err)) {
                        loff_t isize = inode->i_size;
                        if (pos + blocksize > isize)
-                               vmtruncate(inode, isize);
+                               nilfs_write_failed(inode->i_mapping,
+                                                       pos + blocksize);
                        goto failed_inode;
                }