* [PATCH] libxfs: fix fsmap.h inclusion
@ 2017-06-30 17:08 Darrick J. Wong
2017-06-30 19:34 ` Eric Sandeen
0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2017-06-30 17:08 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs, Eryu Guan
If we /do/ have HAVE_GETFSMAP defined, we need to include linux/fsmap.h.
Found-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
include/linux.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux.h b/include/linux.h
index 92f291d..6ce344c 100644
--- a/include/linux.h
+++ b/include/linux.h
@@ -222,7 +222,9 @@ struct fsxattr {
#define FS_XFLAG_COWEXTSIZE 0x00010000 /* CoW extent size allocator hint */
#endif
-#ifndef HAVE_GETFSMAP
+#ifdef HAVE_GETFSMAP
+# include <linux/fsmap.h>
+#else
/*
* Structure for FS_IOC_GETFSMAP.
*
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libxfs: fix fsmap.h inclusion
2017-06-30 17:08 [PATCH] libxfs: fix fsmap.h inclusion Darrick J. Wong
@ 2017-06-30 19:34 ` Eric Sandeen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2017-06-30 19:34 UTC (permalink / raw)
To: Darrick J. Wong, Eric Sandeen; +Cc: xfs, Eryu Guan
On 6/30/17 12:08 PM, Darrick J. Wong wrote:
> If we /do/ have HAVE_GETFSMAP defined, we need to include linux/fsmap.h.
>
> Found-by: Eryu Guan <eguan@redhat.com>
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Thanks.
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
> ---
> include/linux.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/include/linux.h b/include/linux.h
> index 92f291d..6ce344c 100644
> --- a/include/linux.h
> +++ b/include/linux.h
> @@ -222,7 +222,9 @@ struct fsxattr {
> #define FS_XFLAG_COWEXTSIZE 0x00010000 /* CoW extent size allocator hint */
> #endif
>
> -#ifndef HAVE_GETFSMAP
> +#ifdef HAVE_GETFSMAP
> +# include <linux/fsmap.h>
> +#else
> /*
> * Structure for FS_IOC_GETFSMAP.
> *
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-30 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30 17:08 [PATCH] libxfs: fix fsmap.h inclusion Darrick J. Wong
2017-06-30 19:34 ` Eric Sandeen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.