diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 21:52:37 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 15:08:24 +0300 |
commit | 11fec9b9fb04fd1b3330a3b91ab9dcfa81ad5ad3 (patch) | |
tree | c1dafcef904e5305807f9e60c1ce6bf60343af31 /fs/nfsd/nfsctl.c | |
parent | 41d581a9faefe9121e1f52da5bdbf83476e9497e (diff) | |
download | linux-11fec9b9fb04fd1b3330a3b91ab9dcfa81ad5ad3.tar.xz |
nfsd: 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-50-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 7ed02fb88a36..846559e4769b 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1132,7 +1132,7 @@ static struct inode *nfsd_get_inode(struct super_block *sb, umode_t mode) /* Following advice from simple_fill_super documentation: */ inode->i_ino = iunique(sb, NFSD_MaxReserved); inode->i_mode = mode; - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); switch (mode & S_IFMT) { case S_IFDIR: inode->i_fop = &simple_dir_operations; |