Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376870
b: refs/heads/master
c: bbd465d
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Linus Torvalds committed Jun 9, 2013
1 parent 4535321 commit cb50af0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81db4dbf592b486ac2bc7cabfb328ee2a6c4725d
refs/heads/master: bbd465df73f0d8ba41b8a0732766a243d0f5b356
4 changes: 4 additions & 0 deletions trunk/fs/hpfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,14 @@ static void hpfs_write_failed(struct address_space *mapping, loff_t to)
{
struct inode *inode = mapping->host;

hpfs_lock(inode->i_sb);

if (to > inode->i_size) {
truncate_pagecache(inode, to, inode->i_size);
hpfs_truncate(inode);
}

hpfs_unlock(inode->i_sb);
}

static int hpfs_write_begin(struct file *file, struct address_space *mapping,
Expand Down

0 comments on commit cb50af0

Please sign in to comment.