Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320971
b: refs/heads/master
c: 5e8830d
h: refs/heads/master
i:
  320969: f742a12
  320967: 3a59811
v: v3
  • Loading branch information
Jan Kara authored and Al Viro committed Jul 30, 2012
1 parent 396d7f6 commit 6d0381b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 183fef91cd06ab32c379d217c816bb6607133642
refs/heads/master: 5e8830dc85d0a6258132977381430b327cf553f2
6 changes: 6 additions & 0 deletions trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2318,6 +2318,12 @@ int __block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf,
loff_t size;
int ret;

/*
* Update file times before taking page lock. We may end up failing the
* fault so this update may be superfluous but who really cares...
*/
file_update_time(vma->vm_file);

lock_page(page);
size = i_size_read(inode);
if ((page->mapping != inode->i_mapping) ||
Expand Down

0 comments on commit 6d0381b

Please sign in to comment.