summaryrefslogtreecommitdiffstats
path: root/fs/exfat/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exfat/misc.c')
-rw-r--r--fs/exfat/misc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/exfat/misc.c b/fs/exfat/misc.c
index 2e1a1a6b10..fa84598280 100644
--- a/fs/exfat/misc.c
+++ b/fs/exfat/misc.c
@@ -126,6 +126,14 @@ void exfat_truncate_atime(struct timespec64 *ts)
ts->tv_nsec = 0;
}
+void exfat_truncate_inode_atime(struct inode *inode)
+{
+ struct timespec64 atime = inode_get_atime(inode);
+
+ exfat_truncate_atime(&atime);
+ inode_set_atime_to_ts(inode, atime);
+}
+
u16 exfat_calc_chksum16(void *data, int len, u16 chksum, int type)
{
int i;