diff options
Diffstat (limited to 'fs/nilfs2/recovery.c')
-rw-r--r-- | fs/nilfs2/recovery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nilfs2/recovery.c b/fs/nilfs2/recovery.c index f1626f5011c5..ff00a0b7acb9 100644 --- a/fs/nilfs2/recovery.c +++ b/fs/nilfs2/recovery.c | |||
@@ -527,7 +527,8 @@ static int nilfs_recover_dsync_blocks(struct the_nilfs *nilfs, | |||
527 | if (unlikely(err)) { | 527 | if (unlikely(err)) { |
528 | loff_t isize = inode->i_size; | 528 | loff_t isize = inode->i_size; |
529 | if (pos + blocksize > isize) | 529 | if (pos + blocksize > isize) |
530 | vmtruncate(inode, isize); | 530 | nilfs_write_failed(inode->i_mapping, |
531 | pos + blocksize); | ||
531 | goto failed_inode; | 532 | goto failed_inode; |
532 | } | 533 | } |
533 | 534 | ||