diff options
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 44b53386ab8..c0ff9d6ffde 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -1785,8 +1785,9 @@ retry: | |||
1785 | handle = ext3_journal_start(inode, 2); | 1785 | handle = ext3_journal_start(inode, 2); |
1786 | if (IS_ERR(handle)) { | 1786 | if (IS_ERR(handle)) { |
1787 | /* This is really bad luck. We've written the data | 1787 | /* This is really bad luck. We've written the data |
1788 | * but cannot extend i_size. Bail out and pretend | 1788 | * but cannot extend i_size. Truncate allocated blocks |
1789 | * the write failed... */ | 1789 | * and pretend the write failed... */ |
1790 | ext3_truncate(inode); | ||
1790 | ret = PTR_ERR(handle); | 1791 | ret = PTR_ERR(handle); |
1791 | goto out; | 1792 | goto out; |
1792 | } | 1793 | } |