]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: Move extent count limits to xfs_format.h
authorChandan Babu R <chandan.babu@oracle.com>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
Source kernel commit: 3b0d9fd369ea48419ccb578e0bafa4c54df63ba6

Maximum values associated with extent counters i.e. Maximum extent length,
Maximum data extents and Maximum xattr extents are dictated by the on-disk
format. Hence move these definitions over to xfs_format.h.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_format.h
libxfs/xfs_types.h

index d665c04e69dd3fa981b414f6687703d0566e78c4..d75e5b16da7e80a33dbfe9c2367bed0c34631f72 100644 (file)
@@ -869,6 +869,13 @@ enum xfs_dinode_fmt {
        { XFS_DINODE_FMT_BTREE,         "btree" }, \
        { XFS_DINODE_FMT_UUID,          "uuid" }
 
+/*
+ * Max values for extlen, extnum, aextnum.
+ */
+#define        MAXEXTLEN       ((xfs_extlen_t)0x001fffff)      /* 21 bits */
+#define        MAXEXTNUM       ((xfs_extnum_t)0x7fffffff)      /* signed int */
+#define        MAXAEXTNUM      ((xfs_aextnum_t)0x7fff)         /* signed short */
+
 /*
  * Inode minimum and maximum sizes.
  */
index b6da06b40989fc1ff4f1c351ddacc775a1196f58..794a54cbd0de1dffcfd0279254123d1a90f42823 100644 (file)
@@ -56,13 +56,6 @@ typedef void *               xfs_failaddr_t;
 #define        NULLFSINO       ((xfs_ino_t)-1)
 #define        NULLAGINO       ((xfs_agino_t)-1)
 
-/*
- * Max values for extlen, extnum, aextnum.
- */
-#define        MAXEXTLEN       ((xfs_extlen_t)0x001fffff)      /* 21 bits */
-#define        MAXEXTNUM       ((xfs_extnum_t)0x7fffffff)      /* signed int */
-#define        MAXAEXTNUM      ((xfs_aextnum_t)0x7fff)         /* signed short */
-
 /*
  * Minimum and maximum blocksize and sectorsize.
  * The blocksize upper limit is pretty much arbitrary.