aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-06-12 10:20:26 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-30 17:02:46 -0400
commita63e9b2e76632b3ccb0f33f43484c0c64d601849 (patch)
tree66f26f0c3a6bc23e3b34dcbe129b815cc90c428c /fs
parent120c2bcad80c0f7c6691ad70f7fb1e709854d725 (diff)
gfs2: Push file_update_time() into gfs2_page_mkwrite()
CC: Steven Whitehouse <swhiteho@redhat.com> CC: cluster-devel@redhat.com Acked-by: Steven Whitehouse <swhiteho@redhat.com> 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/gfs2/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 31b199f6efc1..07959150d44e 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -376,6 +376,9 @@ static int gfs2_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
376 */ 376 */
377 vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE); 377 vfs_check_frozen(inode->i_sb, SB_FREEZE_WRITE);
378 378
379 /* Update file times before taking page lock */
380 file_update_time(vma->vm_file);
381
379 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); 382 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
380 ret = gfs2_glock_nq(&gh); 383 ret = gfs2_glock_nq(&gh);
381 if (ret) 384 if (ret)