From: Jeff Layton Date: Wed, 4 Oct 2023 18:52:12 +0000 (-0400) Subject: cramfs: convert to new timestamp accessors X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=86184320d6390398250ac211bea4876b4c5b901f;p=linux.git cramfs: convert to new timestamp accessors Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton Link: https://lore.kernel.org/r/20231004185347.80880-25-jlayton@kernel.org Signed-off-by: Christian Brauner --- diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 5ee7d7bbb361c..9168b2ec9497e 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -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