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 /fs/btrfs/volumes.c | |
parent | 51b0f3ebdbbf440b2d04f24cff2ad8b39d11842d (diff) | |
download | lwn-913e99287b98fd051ac1976140a2764a8ef9dfbf.tar.gz lwn-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 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 73f9ea7672db..264c71590370 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1917,15 +1917,13 @@ out: static void update_dev_time(const char *device_path) { struct path path; - struct timespec64 now; int ret; ret = kern_path(device_path, LOOKUP_FOLLOW, &path); if (ret) return; - now = current_time(d_inode(path.dentry)); - inode_update_time(d_inode(path.dentry), &now, S_MTIME | S_CTIME | S_VERSION); + inode_update_time(d_inode(path.dentry), S_MTIME | S_CTIME | S_VERSION); path_put(&path); } |