Skip to content

Commit 5feb4b4

Browse files
jtlaytonbrauner
authored andcommitted
sunrpc: convert to new timestamp accessors
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-81-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent cf2766b commit 5feb4b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/sunrpc/rpc_pipe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ rpc_get_inode(struct super_block *sb, umode_t mode)
472472
return NULL;
473473
inode->i_ino = get_next_ino();
474474
inode->i_mode = mode;
475-
inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode);
475+
simple_inode_init_ts(inode);
476476
switch (mode & S_IFMT) {
477477
case S_IFDIR:
478478
inode->i_fop = &simple_dir_operations;

0 commit comments

Comments
 (0)