]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: fix incorrect porting to 6.7
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:28 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:22 +0000 (14:06 -0700)
Userspace libxfs is supposed to match the kernel libxfs except for the
preprocessor include directives.  Fix a few discrepancies that came up
for whatever reason.

To fix the build errors resulting from CONFIG_XFS_RT not being defined,
add it to libxfs.h and alter the Makefile to track xfs_rtbitmap.h.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
db/check.c
include/libxfs.h
libxfs/Makefile
libxfs/xfs_rtbitmap.c
libxfs/xfs_rtbitmap.h
repair/rt.c

index 9d5576c333b27ad95284c26199737c8aa207efc7..a47a5d9cb5b4a06d6ffe25b397572d2f9bb0a06f 100644 (file)
@@ -20,7 +20,6 @@
 #include "init.h"
 #include "malloc.h"
 #include "dir2.h"
-#include "xfs_rtbitmap.h"
 
 typedef enum {
        IS_USER_QUOTA, IS_PROJECT_QUOTA, IS_GROUP_QUOTA,
index 9cec394ca407a65807b05f43ee899b34e3b478db..aeec2bc761260c0603e97ae51b1657331aa40cf5 100644 (file)
@@ -7,6 +7,9 @@
 #ifndef __LIBXFS_H__
 #define __LIBXFS_H__
 
+/* For userspace XFS_RT is always defined */
+#define CONFIG_XFS_RT
+
 #include "libxfs_api_defs.h"
 #include "platform_defs.h"
 #include "xfs.h"
@@ -80,6 +83,7 @@ struct iomap;
 #include "xfs_refcount_btree.h"
 #include "xfs_refcount.h"
 #include "xfs_btree_staging.h"
+#include "xfs_rtbitmap.h"
 
 #ifndef ARRAY_SIZE
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
index 010ee68e229223af1ee880004a57d5968010bf38..6f688c0ad25a0152de9818df5bf3f39254c72053 100644 (file)
@@ -50,6 +50,7 @@ HFILES = \
        xfs_refcount_btree.h \
        xfs_rmap.h \
        xfs_rmap_btree.h \
+       xfs_rtbitmap.h \
        xfs_sb.h \
        xfs_shared.h \
        xfs_trans_resv.h \
index 8f313339e97f1803d5df9fdbd97741308dee1f47..fb083499070cc85a80a45f31843f41b258222feb 100644 (file)
@@ -931,7 +931,7 @@ xfs_rtcheck_alloc_range(
  */
 int
 xfs_rtfree_extent(
-       xfs_trans_t             *tp,    /* transaction pointer */
+       struct xfs_trans        *tp,    /* transaction pointer */
        xfs_rtxnum_t            start,  /* starting rtext number to free */
        xfs_rtxlen_t            len)    /* length of extent freed */
 {
index db2f8c924b05031b35cac9a8a6642fdc3f6e06b0..c0637057d69c4816a9c7de41b82f9232a81d9e33 100644 (file)
@@ -6,9 +6,6 @@
 #ifndef __XFS_RTBITMAP_H__
 #define        __XFS_RTBITMAP_H__
 
-/* For userspace XFS_RT is always defined */
-#define CONFIG_XFS_RT
-
 struct xfs_rtalloc_args {
        struct xfs_mount        *mp;
        struct xfs_trans        *tp;
index abe58b569c0c6a97b37a5038c89b75ecaab8bac5..9f3bc8d53ec6002729685c6c73bee8e59a9438c1 100644 (file)
@@ -13,7 +13,6 @@
 #include "protos.h"
 #include "err_protos.h"
 #include "rt.h"
-#include "xfs_rtbitmap.h"
 
 #define xfs_highbit64 libxfs_highbit64 /* for XFS_RTBLOCKLOG macro */