diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-08-07 15:38:39 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-08-11 09:04:57 +0200 |
commit | 913e99287b98fd051ac1976140a2764a8ef9dfbf (patch) | |
tree | 98b256701a67886b61be340d4d5043ffcf22a31d /include | |
parent | 51b0f3ebdbbf440b2d04f24cff2ad8b39d11842d (diff) | |
download | linux-913e99287b98fd051ac1976140a2764a8ef9dfbf.tar.gz linux-913e99287b98fd051ac1976140a2764a8ef9dfbf.tar.bz2 linux-913e99287b98fd051ac1976140a2764a8ef9dfbf.zip |
fs: drop the timespec64 argument from update_time
Now that all of the update_time operations are prepared for it, we can
drop the timespec64 argument from the update_time operation. Do that and
remove it from some associated functions like inode_update_time and
inode_needs_update_time.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230807-mgctime-v7-8-d1dec143a704@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index bb3c2c4f871f..a83313f90fe3 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1887,7 +1887,7 @@ struct inode_operations { ssize_t (*listxattr) (struct dentry *, char *, size_t); int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, u64 len); - int (*update_time)(struct inode *, struct timespec64 *, int); + int (*update_time)(struct inode *, int); int (*atomic_open)(struct inode *, struct dentry *, struct file *, unsigned open_flag, umode_t create_mode); @@ -2237,7 +2237,7 @@ enum file_time_flags { extern bool atime_needs_update(const struct path *, struct inode *); extern void touch_atime(const struct path *); -int inode_update_time(struct inode *inode, struct timespec64 *time, int flags); +int inode_update_time(struct inode *inode, int flags); static inline void file_accessed(struct file *file) { |