]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
mkfs: remove use-once default macros
authorEric Sandeen <sandeen@sandeen.net>
Wed, 3 Jan 2018 20:10:10 +0000 (14:10 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 3 Jan 2018 20:10:10 +0000 (14:10 -0600)
sb_feat was a weird mishmash of hardcoded defaults and macros
(which were used in only this place).

Make it consistent by removing the use-once macros, and remove
the unused XFS_DFL_LOG_SIZE while we're in here.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_multidisk.h
mkfs/xfs_mkfs.c

index e5f53b7ea0654d821949854ddd8a9ba35a1e783f..54913d86cdb86a8beaea4a9e8d581b190e7cc8c7 100644 (file)
 #define        XFS_MIN_DATA_BLOCKS     100
 #define        XFS_MIN_INODE_PERBLOCK  2               /* min inodes per block */
 #define        XFS_DFL_IMAXIMUM_PCT    25              /* max % of space for inodes */
-#define        XFS_IFLAG_ALIGN         true            /* -i align defaults on */
 #define        XFS_MIN_REC_DIRSIZE     12              /* 4096 byte dirblocks (V2) */
-#define        XFS_DFL_DIR_VERSION     2               /* default directory version */
-#define        XFS_DFL_LOG_SIZE        1000            /* default log size, blocks */
 #define        XFS_DFL_LOG_FACTOR      5               /* default log size, factor */
                                                /* with max trans reservation */
 #define XFS_MAX_INODE_SIG_BITS 32              /* most significant bits in an
index ec64a4622423e81ac086a5d64cf99e3fb1975240..2fd4e866173041cf61a720c5ebdc2c6c06e32f57 100644 (file)
@@ -3850,8 +3850,8 @@ main(
                .sb_feat = {
                        .log_version = 2,
                        .attr_version = 2,
-                       .dir_version = XFS_DFL_DIR_VERSION,
-                       .inode_align = XFS_IFLAG_ALIGN,
+                       .dir_version = 2,
+                       .inode_align = true,
                        .nci = false,
                        .lazy_sb_counters = true,
                        .projid32bit = true,