[PATCH 5/5] xfs: increase inode cluster size for v5 filesystems
Dave Chinner
david at fromorbit.com
Tue Nov 5 13:56:50 CST 2013
On Tue, Nov 05, 2013 at 08:43:07AM -0800, Christoph Hellwig wrote:
> > + 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.
I'd like to leave it there until we remove the experimental tag from
the v5 superblock configuration, as there is no good way of
determining that someone is using a mkfs patched to enable this
feature yet...
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list