summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ocfs2/aops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 50d56d9a0475..9cd0a6815933 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2049,7 +2049,8 @@ out_write_size:
2049 inode->i_mtime = inode->i_ctime = current_time(inode); 2049 inode->i_mtime = inode->i_ctime = current_time(inode);
2050 di->i_mtime = di->i_ctime = cpu_to_le64(inode->i_mtime.tv_sec); 2050 di->i_mtime = di->i_ctime = cpu_to_le64(inode->i_mtime.tv_sec);
2051 di->i_mtime_nsec = di->i_ctime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); 2051 di->i_mtime_nsec = di->i_ctime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec);
2052 ocfs2_update_inode_fsync_trans(handle, inode, 1); 2052 if (handle)
2053 ocfs2_update_inode_fsync_trans(handle, inode, 1);
2053 } 2054 }
2054 if (handle) 2055 if (handle)
2055 ocfs2_journal_dirty(handle, wc->w_di_bh); 2056 ocfs2_journal_dirty(handle, wc->w_di_bh);