Skip to content

Commit

Permalink
inode.c: unbreak time saving
Browse files Browse the repository at this point in the history
  • Loading branch information
inste committed Jul 7, 2020
1 parent 268babd commit d25a0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ static int __exfat_write_inode(struct inode *inode, int sync)
&ep->dentry.file.create_time,
&ep->dentry.file.create_date,
&ep->dentry.file.create_time_cs);
ts64 = timespec_to_timespec64(inode->i_mtime);
exfat_set_entry_time(sbi, &ts64,
&ep->dentry.file.modify_tz,
&ep->dentry.file.modify_time,
&ep->dentry.file.modify_date,
&ep->dentry.file.modify_time_cs);
inode->i_mtime = timespec64_to_timespec(ts64);
ts64 = timespec_to_timespec64(inode->i_atime);
exfat_set_entry_time(sbi, &ts64,
&ep->dentry.file.access_tz,
&ep->dentry.file.access_time,
&ep->dentry.file.access_date,
NULL);
inode->i_atime = timespec64_to_timespec(ts64);

/* File size should be zero if there is no cluster allocated */
on_disk_size = i_size_read(inode);
Expand Down

0 comments on commit d25a0bb

Please sign in to comment.