diff options
author | Marco Stornelli <marco.stornelli@gmail.com> | 2012-12-15 05:57:37 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-20 18:40:54 -0500 |
commit | 2d1b399b22a8042edbaf41b1f2086d4183422ce4 (patch) | |
tree | e8d0b0799ae88766a41f27eb9ce0de5664b381bd /fs/nilfs2/recovery.c | |
parent | 3e7a806928ac2dcae1423d6879e4f7e86e59bb9e (diff) |
nilfs2: drop vmtruncate
Removed vmtruncate
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 | ||