diff options
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 12f10d5c3d99..a93ef802db6b 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved. | 2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms of version 2 of the GNU General Public License as | 5 | * under the terms of version 2 of the GNU General Public License as |
@@ -584,12 +584,13 @@ xfs_mount_common(xfs_mount_t *mp, xfs_sb_t *sbp) | |||
584 | ASSERT(sbp->sb_inodesize >= 256 && sbp->sb_inodesize <= 2048); | 584 | ASSERT(sbp->sb_inodesize >= 256 && sbp->sb_inodesize <= 2048); |
585 | switch (sbp->sb_inodesize) { | 585 | switch (sbp->sb_inodesize) { |
586 | case 256: | 586 | case 256: |
587 | mp->m_attroffset = XFS_LITINO(mp) - XFS_BMDR_SPACE_CALC(2); | 587 | mp->m_attroffset = XFS_LITINO(mp) - |
588 | XFS_BMDR_SPACE_CALC(MINABTPTRS); | ||
588 | break; | 589 | break; |
589 | case 512: | 590 | case 512: |
590 | case 1024: | 591 | case 1024: |
591 | case 2048: | 592 | case 2048: |
592 | mp->m_attroffset = XFS_BMDR_SPACE_CALC(12); | 593 | mp->m_attroffset = XFS_BMDR_SPACE_CALC(6 * MINABTPTRS); |
593 | break; | 594 | break; |
594 | default: | 595 | default: |
595 | ASSERT(0); | 596 | ASSERT(0); |