From: Christoph Hellwig Date: Thu, 6 Mar 2008 02:49:36 +0000 (+1100) Subject: [XFS] Remove superflous xfs_readsb call in xfs_mountfs. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a45c796867df8dabc8eed6e72898d7ba1609bd7e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 Signed-off-by: Donald Douwsma Signed-off-by: Lachlan McIlroy --- 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); /*