[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH2r5mtLDTExHRhbr3yyK1Jm1Azq8PyN_TkWsf3gyEWVhybrnw@mail.gmail.com>
Date: Mon, 20 Oct 2025 11:59:56 -0500
From: Steve French <smfrench@...il.com>
To: David Howells <dhowells@...hat.com>
Cc: Steve French <sfrench@...ba.org>, Paulo Alcantara <pc@...guebit.org>, linux-cifs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cifs: #include cifsglob.h before trace.h to allow structs
in tracepoints
Do you have patches in process that will depend on this?
On Mon, Oct 20, 2025 at 4:16 AM David Howells <dhowells@...hat.com> wrote:
>
>
> Make cifs #include cifsglob.h in advance of #including trace.h so that the
> structures defined in cifsglob.h can be accessed directly by the cifs
> tracepoints rather than the callers having to manually pass in the bits and
> pieces.
>
> This should allow the tracepoints to be made more efficient to use as well
> as easier to read in the code.
>
> Signed-off-by: David Howells <dhowells@...hat.com>
> cc: Steve French <sfrench@...ba.org>
> cc: Paulo Alcantara <pc@...guebit.org>
> cc: linux-cifs@...r.kernel.org
> cc: linux-fsdevel@...r.kernel.org
> ---
> fs/smb/client/cifsproto.h | 1 +
> fs/smb/client/trace.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/fs/smb/client/cifsproto.h b/fs/smb/client/cifsproto.h
> index 07dc4d766192..4ef6459de564 100644
> --- a/fs/smb/client/cifsproto.h
> +++ b/fs/smb/client/cifsproto.h
> @@ -9,6 +9,7 @@
> #define _CIFSPROTO_H
> #include <linux/nls.h>
> #include <linux/ctype.h>
> +#include "cifsglob.h"
> #include "trace.h"
> #ifdef CONFIG_CIFS_DFS_UPCALL
> #include "dfs_cache.h"
> diff --git a/fs/smb/client/trace.c b/fs/smb/client/trace.c
> index 465483787193..16b0e719731f 100644
> --- a/fs/smb/client/trace.c
> +++ b/fs/smb/client/trace.c
> @@ -4,5 +4,6 @@
> *
> * Author(s): Steve French <stfrench@...rosoft.com>
> */
> +#include "cifsglob.h"
> #define CREATE_TRACE_POINTS
> #include "trace.h"
>
>
--
Thanks,
Steve
Powered by blists - more mailing lists