summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-06-12 16:20:24 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-31 01:02:45 +0400
commit3ca9c3bd8a55956bee291cda5b224f737b0d0cfe (patch)
treeae2779a8443715566dfe990b17225b37555afc0d /fs/ceph
parent5e8830dc85d0a6258132977381430b327cf553f2 (diff)
downloadblackbird-op-linux-3ca9c3bd8a55956bee291cda5b224f737b0d0cfe.tar.gz
blackbird-op-linux-3ca9c3bd8a55956bee291cda5b224f737b0d0cfe.zip
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/addr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 8b67304e4b80..452e71a1b753 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;
OpenPOWER on IntegriCloud