diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2008-03-05 21:44:28 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-10 02:24:45 -0400 |
commit | 6211870992502efdccf9cd6bae155c83277835fa (patch) | |
tree | 1e8a5606550a4cccc7d8e82dd23e681077f223a6 /fs/xfs/xfs_mount.c | |
parent | 7180c4c9e09888db0a188f729c96c6d7bd61fa83 (diff) |
[XFS] remove shouting-indirection macros from xfs_sb.h
Remove macro-to-small-function indirection from xfs_sb.h, and remove some
which are completely unused.
SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30528a
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 6409b3762995..99bab1e372b1 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -225,7 +225,7 @@ xfs_mount_validate_sb( | |||
225 | return XFS_ERROR(EWRONGFS); | 225 | return XFS_ERROR(EWRONGFS); |
226 | } | 226 | } |
227 | 227 | ||
228 | if (!XFS_SB_GOOD_VERSION(sbp)) { | 228 | if (!xfs_sb_good_version(sbp)) { |
229 | xfs_fs_mount_cmn_err(flags, "bad version"); | 229 | xfs_fs_mount_cmn_err(flags, "bad version"); |
230 | return XFS_ERROR(EWRONGFS); | 230 | return XFS_ERROR(EWRONGFS); |
231 | } | 231 | } |
@@ -300,7 +300,7 @@ xfs_mount_validate_sb( | |||
300 | /* | 300 | /* |
301 | * Version 1 directory format has never worked on Linux. | 301 | * Version 1 directory format has never worked on Linux. |
302 | */ | 302 | */ |
303 | if (unlikely(!XFS_SB_VERSION_HASDIRV2(sbp))) { | 303 | if (unlikely(!xfs_sb_version_hasdirv2(sbp))) { |
304 | xfs_fs_mount_cmn_err(flags, | 304 | xfs_fs_mount_cmn_err(flags, |
305 | "file system using version 1 directory format"); | 305 | "file system using version 1 directory format"); |
306 | return XFS_ERROR(ENOSYS); | 306 | return XFS_ERROR(ENOSYS); |
@@ -781,7 +781,7 @@ xfs_update_alignment(xfs_mount_t *mp, int mfsi_flags, __uint64_t *update_flags) | |||
781 | * Update superblock with new values | 781 | * Update superblock with new values |
782 | * and log changes | 782 | * and log changes |
783 | */ | 783 | */ |
784 | if (XFS_SB_VERSION_HASDALIGN(sbp)) { | 784 | if (xfs_sb_version_hasdalign(sbp)) { |
785 | if (sbp->sb_unit != mp->m_dalign) { | 785 | if (sbp->sb_unit != mp->m_dalign) { |
786 | sbp->sb_unit = mp->m_dalign; | 786 | sbp->sb_unit = mp->m_dalign; |
787 | *update_flags |= XFS_SB_UNIT; | 787 | *update_flags |= XFS_SB_UNIT; |
@@ -792,7 +792,7 @@ xfs_update_alignment(xfs_mount_t *mp, int mfsi_flags, __uint64_t *update_flags) | |||
792 | } | 792 | } |
793 | } | 793 | } |
794 | } else if ((mp->m_flags & XFS_MOUNT_NOALIGN) != XFS_MOUNT_NOALIGN && | 794 | } else if ((mp->m_flags & XFS_MOUNT_NOALIGN) != XFS_MOUNT_NOALIGN && |
795 | XFS_SB_VERSION_HASDALIGN(&mp->m_sb)) { | 795 | xfs_sb_version_hasdalign(&mp->m_sb)) { |
796 | mp->m_dalign = sbp->sb_unit; | 796 | mp->m_dalign = sbp->sb_unit; |
797 | mp->m_swidth = sbp->sb_width; | 797 | mp->m_swidth = sbp->sb_width; |
798 | } | 798 | } |
@@ -869,7 +869,7 @@ xfs_set_rw_sizes(xfs_mount_t *mp) | |||
869 | STATIC void | 869 | STATIC void |
870 | xfs_set_inoalignment(xfs_mount_t *mp) | 870 | xfs_set_inoalignment(xfs_mount_t *mp) |
871 | { | 871 | { |
872 | if (XFS_SB_VERSION_HASALIGN(&mp->m_sb) && | 872 | if (xfs_sb_version_hasalign(&mp->m_sb) && |
873 | mp->m_sb.sb_inoalignmt >= | 873 | mp->m_sb.sb_inoalignmt >= |
874 | XFS_B_TO_FSBT(mp, mp->m_inode_cluster_size)) | 874 | XFS_B_TO_FSBT(mp, mp->m_inode_cluster_size)) |
875 | mp->m_inoalign_mask = mp->m_sb.sb_inoalignmt - 1; | 875 | mp->m_inoalign_mask = mp->m_sb.sb_inoalignmt - 1; |