diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-12-12 17:46:25 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-12-12 17:47:17 +0100 |
commit | c1b4a321ede083521b91c314e1c4fa233ac33740 (patch) | |
tree | 7fbf9f0bd0191eda2c268ce3bc8aaa2131823d33 /fs/xfs/scrub | |
parent | xfs: precalculate inodes and blocks per inode cluster (diff) | |
download | linux-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/scrub')
-rw-r--r-- | fs/xfs/scrub/ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/ialloc.c b/fs/xfs/scrub/ialloc.c index 596a02b8efdc..9b5287a0e8ba 100644 --- a/fs/xfs/scrub/ialloc.c +++ b/fs/xfs/scrub/ialloc.c @@ -300,7 +300,7 @@ xchk_iallocbt_rec( /* Make sure this record is aligned to cluster and inoalignmnt size. */ agbno = XFS_AGINO_TO_AGBNO(mp, irec.ir_startino); - if ((agbno & (xfs_ialloc_cluster_alignment(mp) - 1)) || + if ((agbno & (mp->m_cluster_align - 1)) || (agbno & (mp->m_blocks_per_cluster - 1))) xchk_btree_set_corrupt(bs->sc, bs->cur, 0); |