projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183fef9
)
fs: Push file_update_time() into __block_page_mkwrite()
author
Jan Kara
<
[email protected]
>
Tue, 12 Jun 2012 14:20:23 +0000
(16:20 +0200)
committer
Al Viro
<
[email protected]
>
Mon, 30 Jul 2012 21:02:44 +0000
(
01:02
+0400)
Tested-by: Kamal Mostafa <
[email protected]
>
Tested-by: Peter M. Petrakis <
[email protected]
>
Tested-by: Dann Frazier <
[email protected]
>
Tested-by: Massimo Morana <
[email protected]
>
Signed-off-by: Jan Kara <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/buffer.c
patch
|
blob
|
history
diff --git
a/fs/buffer.c
b/fs/buffer.c
index c7062c896d7c20489f41ea838640a5cfa5387ca9..d5ec360e332d40cf94d1f451d9b72c0194d3e5c9 100644
(file)
--- a/
fs/buffer.c
+++ b/
fs/buffer.c
@@
-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) ||