aboutsummaryrefslogtreecommitdiff
path: root/module/os/linux/zfs/zpl_inode.c
diff options
context:
space:
mode:
authorRob Norris <robn@despairlabs.com>2023-12-16 11:31:32 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2023-12-20 19:47:40 +0000
commitdb4fc559cc1931b9219e62aa505cd5c51a17b232 (patch)
treedb6be9a516cc31d7539f94b67c9be2e695607570 /module/os/linux/zfs/zpl_inode.c
parent00f40961e0eb7d8bcdb016020f1f2dbe372d3e96 (diff)
downloadsrc-db4fc559cc1931b9219e62aa505cd5c51a17b232.tar.gz
src-db4fc559cc1931b9219e62aa505cd5c51a17b232.zip
Diffstat (limited to 'module/os/linux/zfs/zpl_inode.c')
-rw-r--r--module/os/linux/zfs/zpl_inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/os/linux/zfs/zpl_inode.c b/module/os/linux/zfs/zpl_inode.c
index 96f65b9e94e2..ad1753f7a071 100644
--- a/module/os/linux/zfs/zpl_inode.c
+++ b/module/os/linux/zfs/zpl_inode.c
@@ -526,7 +526,8 @@ zpl_setattr(struct dentry *dentry, struct iattr *ia)
vap->va_ctime = ia->ia_ctime;
if (vap->va_mask & ATTR_ATIME)
- ip->i_atime = zpl_inode_timestamp_truncate(ia->ia_atime, ip);
+ zpl_inode_set_atime_to_ts(ip,
+ zpl_inode_timestamp_truncate(ia->ia_atime, ip));
cookie = spl_fstrans_mark();
#ifdef HAVE_USERNS_IOPS_SETATTR