ceph: Push file_update_time() into ceph_page_mkwrite()
CC: Sage Weil <sage@newdream.net> CC: ceph-devel@vger.kernel.org Acked-by: Sage Weil <sage@newdream.net> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
5e8830dc85
commit
3ca9c3bd8a
|
@ -1184,6 +1184,9 @@ static int ceph_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
|
|||
loff_t size, len;
|
||||
int ret;
|
||||
|
||||
/* Update time before taking page lock */
|
||||
file_update_time(vma->vm_file);
|
||||
|
||||
size = i_size_read(inode);
|
||||
if (off + PAGE_CACHE_SIZE <= size)
|
||||
len = PAGE_CACHE_SIZE;
|
||||
|
|
Loading…
Reference in New Issue