xfs
[Top] [All Lists]

Re: [PATCH 5/5] xfs: increase inode cluster size for v5 filesystems

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH 5/5] xfs: increase inode cluster size for v5 filesystems
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 5 Nov 2013 08:43:07 -0800
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1383280040-21979-6-git-send-email-david@xxxxxxxxxxxxx>
References: <1383280040-21979-1-git-send-email-david@xxxxxxxxxxxxx> <1383280040-21979-6-git-send-email-david@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
> +     if (xfs_sb_version_hascrc(&mp->m_sb)) {
> +             int     new_size = mp->m_inode_cluster_size;
> +
> +             new_size *= mp->m_sb.sb_inodesize / XFS_DINODE_MIN_SIZE;
> +             if (mp->m_sb.sb_inoalignmt >= XFS_B_TO_FSBT(mp, new_size))
> +                     mp->m_inode_cluster_size = new_size;
> +             xfs_info(mp, "Using inode cluster size of %d bytes",
> +                      mp->m_inode_cluster_size);

printing this on every mount seem a bit too verbose.

<Prev in Thread] Current Thread [Next in Thread>