]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/ext2/xattr.c
fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps
[mirror_ubuntu-hirsute-kernel.git] / fs / ext2 / xattr.c
index b7f896f3f7a7fb83160ee049f2c119908668cb64..fbdb8f17189366ede18ba20754d4db30c7e867b9 100644 (file)
@@ -691,7 +691,7 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh,
 
        /* Update the inode. */
        EXT2_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0;
-       inode->i_ctime = CURRENT_TIME_SEC;
+       inode->i_ctime = current_time(inode);
        if (IS_SYNC(inode)) {
                error = sync_inode_metadata(inode, 1);
                /* In case sync failed due to ENOSPC the inode was actually