Skip to contentSkip to conversation

libxfs: fix fsmap.h inclusion

PATCH In review Darrick J. Wong 2 participants 2 messages Jun 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxfs: fix fsmap.h inclusion

If we /do/ have HAVE_GETFSMAP defined, we need to include linux/fsmap.h.

---
 include/linux.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/linux.h +3 -1
index 92f291d..6ce344c 100644
@@ -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.
  *
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Darrick J. Wong

If we /do/ have HAVE_GETFSMAP defined, we need to include linux/fsmap.h.

Thanks.

Quoted 24 lines
---
 include/linux.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/linux.h +3 -2
index 92f291d..6ce344c 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html