From: Jeff Layton Date: Wed, 5 Jul 2023 19:01:53 +0000 (-0400) Subject: sunrpc: convert to ctime accessor functions X-Git-Tag: block-6.6-2023-09-08~80^2~19 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bc734e8ec11305f164d1d540bc55cfbd41f28c05;p=linux-block.git sunrpc: convert to ctime accessor functions In later patches, we're going to change how the inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton Reviewed-by: Jan Kara Message-Id: <20230705190309.579783-86-jlayton@kernel.org> Signed-off-by: Christian Brauner --- diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 0b6034fab9ab..f420d8457345 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -472,7 +472,7 @@ rpc_get_inode(struct super_block *sb, umode_t mode) return NULL; inode->i_ino = get_next_ino(); inode->i_mode = mode; - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); switch (mode & S_IFMT) { case S_IFDIR: inode->i_fop = &simple_dir_operations;