Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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()

parent 183fef91
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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) ||