From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: linux-xfs <linux-xfs@vger.kernel.org>
Subject: Re: [PATCH 5/5] mkfs: remove use-once default macros
Date: Thu, 7 Dec 2017 20:27:56 -0800 [thread overview]
Message-ID: <20171208042756.GL19219@magnolia> (raw)
In-Reply-To: <bf7aac6f-dc75-d00f-d6ec-23599a8b156a@sandeen.net>
On Thu, Dec 07, 2017 at 10:18:42PM -0600, Eric Sandeen wrote:
> 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>
Looks ok,
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
> include/xfs_multidisk.h | 3 ---
> mkfs/xfs_mkfs.c | 4 ++--
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/include/xfs_multidisk.h b/include/xfs_multidisk.h
> index e5f53b7..54913d8 100644
> --- a/include/xfs_multidisk.h
> +++ b/include/xfs_multidisk.h
> @@ -29,10 +29,7 @@
> #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
> diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
> index 3f6315d..a321ff2 100644
> --- a/mkfs/xfs_mkfs.c
> +++ b/mkfs/xfs_mkfs.c
> @@ -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,
> --
> 1.8.3.1
>
> --
> 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
next prev parent reply other threads:[~2017-12-08 4:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-08 4:11 [PATCH 0/5] mkfs: minor tidyups Eric Sandeen
2017-12-08 4:13 ` [PATCH 1/5] mkfs: Don't emit default config message yet Eric Sandeen
2017-12-08 4:21 ` Darrick J. Wong
2017-12-08 4:54 ` Dave Chinner
2017-12-08 13:37 ` Eric Sandeen
2017-12-08 4:13 ` [PATCH 2/5] mkfs: remove unused m_uuid in sb_feat_args Eric Sandeen
2017-12-08 4:22 ` Darrick J. Wong
2017-12-08 4:15 ` [PATCH 3/5] mkfs: invert project id width boolean name Eric Sandeen
2017-12-08 4:18 ` Darrick J. Wong
2017-12-08 4:17 ` [PATCH 4/5] mkfs: document sb_feat_args members Eric Sandeen
2017-12-08 4:27 ` Darrick J. Wong
2017-12-08 4:59 ` Dave Chinner
2017-12-08 4:18 ` [PATCH 5/5] mkfs: remove use-once default macros Eric Sandeen
2017-12-08 4:27 ` Darrick J. Wong [this message]
2017-12-08 5:01 ` [PATCH 0/5] mkfs: minor tidyups Dave Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171208042756.GL19219@magnolia \
--to=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@sandeen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox