aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2014-07-24 06:53:10 -0400
committerDave Chinner <david@fromorbit.com>2014-07-24 06:53:10 -0400
commit54aa61f82dc65d72b9c710fbea75c9c31e84399e (patch)
tree1070b9b265a55a397ffe33421e38150a7bf4728d /fs/xfs
parent9de67c3ba9ea961ba420573d56479d09d33a7587 (diff)
xfs: tidy up xfs_set_inode32
xfs_set_inode32() caught my eye because it had weird spacing around the "-1's". In cleaning that up, I realized that the assignment in the declaration of "ino" is never used; it's rewritten before it gets read. Drop the ino initializer from its declaration since it's not used, and move the agino initialization into the body of the function, mostly so that we can have pretty whitespace and not exceed 80 columns. :) Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_super.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index b475eb629772..c50cbf94f9e1 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -609,8 +609,8 @@ xfs_set_inode32(struct xfs_mount *mp, xfs_agnumber_t agcount)
609 xfs_agnumber_t maxagi = 0; 609 xfs_agnumber_t maxagi = 0;
610 xfs_sb_t *sbp = &mp->m_sb; 610 xfs_sb_t *sbp = &mp->m_sb;
611 xfs_agnumber_t max_metadata; 611 xfs_agnumber_t max_metadata;
612 xfs_agino_t agino = XFS_OFFBNO_TO_AGINO(mp, sbp->sb_agblocks -1, 0); 612 xfs_agino_t agino;
613 xfs_ino_t ino = XFS_AGINO_TO_INO(mp, sbp->sb_agcount -1, agino); 613 xfs_ino_t ino;
614 xfs_perag_t *pag; 614 xfs_perag_t *pag;
615 615
616 /* Calculate how much should be reserved for inodes to meet 616 /* Calculate how much should be reserved for inodes to meet
@@ -628,6 +628,8 @@ xfs_set_inode32(struct xfs_mount *mp, xfs_agnumber_t agcount)
628 max_metadata = agcount; 628 max_metadata = agcount;
629 } 629 }
630 630
631 agino = XFS_OFFBNO_TO_AGINO(mp, sbp->sb_agblocks - 1, 0);
632
631 for (index = 0; index < agcount; index++) { 633 for (index = 0; index < agcount; index++) {
632 ino = XFS_AGINO_TO_INO(mp, index, agino); 634 ino = XFS_AGINO_TO_INO(mp, index, agino);
633 635