diff options
author | Jan Kara <jack@suse.cz> | 2012-06-12 10:20:24 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-30 17:02:45 -0400 |
commit | 3ca9c3bd8a55956bee291cda5b224f737b0d0cfe (patch) | |
tree | ae2779a8443715566dfe990b17225b37555afc0d /fs | |
parent | 5e8830dc85d0a6258132977381430b327cf553f2 (diff) |
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')
-rw-r--r-- | fs/ceph/addr.c | 3 |
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) | |||
1184 | loff_t size, len; | 1184 | loff_t size, len; |
1185 | int ret; | 1185 | int ret; |
1186 | 1186 | ||
1187 | /* Update time before taking page lock */ | ||
1188 | file_update_time(vma->vm_file); | ||
1189 | |||
1187 | size = i_size_read(inode); | 1190 | size = i_size_read(inode); |
1188 | if (off + PAGE_CACHE_SIZE <= size) | 1191 | if (off + PAGE_CACHE_SIZE <= size) |
1189 | len = PAGE_CACHE_SIZE; | 1192 | len = PAGE_CACHE_SIZE; |