diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-03-06 13:49:36 +1100 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-18 11:41:46 +1000 |
commit | a45c796867df8dabc8eed6e72898d7ba1609bd7e (patch) | |
tree | 81e67643e1bc0577dccbb7f28a35437b951b2521 /fs/xfs/xfs_mount.c | |
parent | dfa18b117974d7667a2d5b941853fac3f2e256db (diff) | |
download | linux-a45c796867df8dabc8eed6e72898d7ba1609bd7e.tar.gz linux-a45c796867df8dabc8eed6e72898d7ba1609bd7e.tar.bz2 linux-a45c796867df8dabc8eed6e72898d7ba1609bd7e.zip |
[XFS] Remove superflous xfs_readsb call in xfs_mountfs.
When xfs_mountfs is called by xfs_mount xfs_readsb was called 35 lines
above unconditionally, so there is no need to try to read the superblock
if it's not present. If any other port doesn't have the superblock read at
this point it should just call it directly from it's xfs_mount equivalent.
SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30603a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
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 | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 8ed164eb9544..41b690e6896c 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c @@ -964,11 +964,6 @@ xfs_mountfs( int uuid_mounted = 0; int error = 0; - if (mp->m_sb_bp == NULL) { - error = xfs_readsb(mp, mfsi_flags); - if (error) - return error; - } xfs_mount_common(mp, sbp); /* |