2023-06-06 15:55:36

by [email protected]

[permalink] [raw]
Subject: [PATCH] smb: remove obsolete comment

From: 鑫华 <[email protected]>

Because do_gettimeofday has been removed and replaced by ktime_get_real_ts64,
So just remove the comment as it's not needed now.

Signed-off-by: 鑫华 <[email protected]>
---
fs/smb/client/transport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/smb/client/transport.c b/fs/smb/client/transport.c
index 24bdd5f4d3bc..0474d0bba0a2 100644
--- a/fs/smb/client/transport.c
+++ b/fs/smb/client/transport.c
@@ -55,7 +55,7 @@ alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
temp->pid = current->pid;
temp->command = cpu_to_le16(smb_buffer->Command);
cifs_dbg(FYI, "For smb_command %d\n", smb_buffer->Command);
- /* do_gettimeofday(&temp->when_sent);*/ /* easier to use jiffies */
+ /* easier to use jiffies */
/* when mid allocated can be before when sent */
temp->when_alloc = jiffies;
temp->server = server;
--
2.34.1



2023-06-06 22:36:03

by Steve French

[permalink] [raw]
Subject: Re: [PATCH] smb: remove obsolete comment

tentatively merged into cifs-2.6.git for-next

On Tue, Jun 6, 2023 at 10:46 AM [email protected] <[email protected]> wrote:
>
> From: 鑫华 <[email protected]>
>
> Because do_gettimeofday has been removed and replaced by ktime_get_real_ts64,
> So just remove the comment as it's not needed now.
>
> Signed-off-by: 鑫华 <[email protected]>
> ---
> fs/smb/client/transport.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/smb/client/transport.c b/fs/smb/client/transport.c
> index 24bdd5f4d3bc..0474d0bba0a2 100644
> --- a/fs/smb/client/transport.c
> +++ b/fs/smb/client/transport.c
> @@ -55,7 +55,7 @@ alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
> temp->pid = current->pid;
> temp->command = cpu_to_le16(smb_buffer->Command);
> cifs_dbg(FYI, "For smb_command %d\n", smb_buffer->Command);
> - /* do_gettimeofday(&temp->when_sent);*/ /* easier to use jiffies */
> + /* easier to use jiffies */
> /* when mid allocated can be before when sent */
> temp->when_alloc = jiffies;
> temp->server = server;
> --
> 2.34.1
>


--
Thanks,

Steve