cramfs: convert to new timestamp accessors
authorJeff Layton <jlayton@kernel.org>
Wed, 4 Oct 2023 18:52:12 +0000 (14:52 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 18 Oct 2023 11:26:20 +0000 (13:26 +0200)
Convert to using the new inode timestamp accessor functions.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20231004185347.80880-25-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/cramfs/inode.c

index 5ee7d7bbb361cee01acf0d0f4a41502dda3ce157..9168b2ec9497ec1c0f66bbf9db21a7d1bef940af 100644 (file)
@@ -133,8 +133,8 @@ static struct inode *get_cramfs_inode(struct super_block *sb,
        }
 
        /* Struct copy intentional */
-       inode->i_mtime = inode->i_atime = inode_set_ctime_to_ts(inode,
-                                                               zerotime);
+       inode_set_mtime_to_ts(inode,
+                             inode_set_atime_to_ts(inode, inode_set_ctime_to_ts(inode, zerotime)));
        /* inode->i_nlink is left 1 - arguably wrong for directories,
           but it's the best we can do without reading the directory
           contents.  1 yields the right result in GNU find, even