Commit 5e8830dc authored by Jan Kara's avatar Jan Kara Committed by Al Viro
Browse files

fs: Push file_update_time() into __block_page_mkwrite()

Tested-by: default avatarKamal Mostafa <>
Tested-by: default avatarPeter M. Petrakis <>
Tested-by: default avatarDann Frazier <>
Tested-by: default avatarMassimo Morana <>
Signed-off-by: default avatarJan Kara <>
Signed-off-by: default avatarAl Viro <>
parent 183fef91
......@@ -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...
size = i_size_read(inode);
if ((page->mapping != inode->i_mapping) ||
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment