diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 14:52:08 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 13:26:19 +0200 |
commit | b1c38a1338c90597c7af66985a9e31152ae8cfd3 (patch) | |
tree | 3891ac08fa0e98ad10259059168e4e323c1b35e7 /fs/btrfs/transaction.c | |
parent | bfs: convert to new timestamp accessors (diff) | |
download | linux-b1c38a1338c90597c7af66985a9e31152ae8cfd3.tar.gz linux-b1c38a1338c90597c7af66985a9e31152ae8cfd3.tar.bz2 linux-b1c38a1338c90597c7af66985a9e31152ae8cfd3.zip |
btrfs: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20231004185347.80880-21-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index c780d3729463..38a2775c5c7b 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1860,7 +1860,8 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, btrfs_i_size_write(BTRFS_I(parent_inode), parent_inode->i_size + fname.disk_name.len * 2); - parent_inode->i_mtime = inode_set_ctime_current(parent_inode); + inode_set_mtime_to_ts(parent_inode, + inode_set_ctime_current(parent_inode)); ret = btrfs_update_inode_fallback(trans, parent_root, BTRFS_I(parent_inode)); if (ret) { btrfs_abort_transaction(trans, ret); |