summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 5370152ea7e3..b455bdf46faa 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -2711,6 +2711,11 @@ out_only_mutex:
2711 * for detecting, at fsync time, if the inode isn't yet in the 2711 * for detecting, at fsync time, if the inode isn't yet in the
2712 * log tree or it's there but not up to date. 2712 * log tree or it's there but not up to date.
2713 */ 2713 */
2714 struct timespec64 now = current_time(inode);
2715
2716 inode_inc_iversion(inode);
2717 inode->i_mtime = now;
2718 inode->i_ctime = now;
2714 trans = btrfs_start_transaction(root, 1); 2719 trans = btrfs_start_transaction(root, 1);
2715 if (IS_ERR(trans)) { 2720 if (IS_ERR(trans)) {
2716 err = PTR_ERR(trans); 2721 err = PTR_ERR(trans);