From: Jan Kara Date: Tue, 12 Jun 2012 14:20:24 +0000 (+0200) Subject: ceph: Push file_update_time() into ceph_page_mkwrite() X-Git-Tag: upstream/snapshot3+hdmi~6890^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ca9c3bd8a55956bee291cda5b224f737b0d0cfe;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ceph: Push file_update_time() into ceph_page_mkwrite() CC: Sage Weil CC: ceph-devel@vger.kernel.org Acked-by: Sage Weil Signed-off-by: Jan Kara Signed-off-by: Al Viro --- diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 8b67304..452e71a 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -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;