summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-12-12 17:46:25 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2018-12-12 17:47:17 +0100
commitc1b4a321ede083521b91c314e1c4fa233ac33740 (patch)
tree7fbf9f0bd0191eda2c268ce3bc8aaa2131823d33 /fs/xfs/xfs_mount.h
parentxfs: precalculate inodes and blocks per inode cluster (diff)
downloadlinux-c1b4a321ede083521b91c314e1c4fa233ac33740.tar.xz
linux-c1b4a321ede083521b91c314e1c4fa233ac33740.zip
xfs: precalculate cluster alignment in inodes and blocks
Store the inode cluster alignment information in units of inodes and blocks in the mount data so that we don't have to keep recalculating them. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index 58a037bfac22..0ad025e7f3cf 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -103,6 +103,8 @@ typedef struct xfs_mount {
uint m_inode_cluster_size;/* min inode buf size */
unsigned int m_inodes_per_cluster;
unsigned int m_blocks_per_cluster;
+ unsigned int m_cluster_align;
+ unsigned int m_cluster_align_inodes;
uint m_blockmask; /* sb_blocksize-1 */
uint m_blockwsize; /* sb_blocksize in words */
uint m_blockwmask; /* blockwsize-1 */