gfs2: Update file times after grabbing glock
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 26 Sep 2016 18:20:19 +0000 (13:20 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 26 Sep 2016 18:20:19 +0000 (13:20 -0500)
commitd7c436cd605eb203ecf64c40f9b18aa610ac0248
tree28bcc71357dbec7e1152322409d0f3c362eab0c3
parente0d735c1cc2749598f2d29f60f9a16658fd96ae9
gfs2: Update file times after grabbing glock

In gfs2_page_mkwrite, grab the inode glock in EX mode before calling
file_update_time: grabbing the lock may result in a call to
gfs2_dinode_in, which will reset the file times to their on-disk state.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/file.c