]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/fat/file.c
fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps
[mirror_ubuntu-hirsute-kernel.git] / fs / fat / file.c
index f7018566883241bc65a981cf0d6e533e4d331241..811bbe0ab7a3c15bcf0e8b696530ad79e5438ba9 100644 (file)
@@ -194,7 +194,7 @@ static int fat_cont_expand(struct inode *inode, loff_t size)
        if (err)
                goto out;
 
-       inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC;
+       inode->i_ctime = inode->i_mtime = current_time(inode);
        mark_inode_dirty(inode);
        if (IS_SYNC(inode)) {
                int err2;
@@ -297,7 +297,7 @@ static int fat_free(struct inode *inode, int skip)
                MSDOS_I(inode)->i_logstart = 0;
        }
        MSDOS_I(inode)->i_attrs |= ATTR_ARCH;
-       inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC;
+       inode->i_ctime = inode->i_mtime = current_time(inode);
        if (wait) {
                err = fat_sync_inode(inode);
                if (err) {