diff options
-rw-r--r-- | fs/xfs/xfs_mount.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index b484ca32641f..fca3f8af6746 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -47,7 +47,6 @@ | |||
47 | 47 | ||
48 | STATIC int xfs_mount_log_sb(xfs_mount_t *, __int64_t); | 48 | STATIC int xfs_mount_log_sb(xfs_mount_t *, __int64_t); |
49 | STATIC int xfs_uuid_mount(xfs_mount_t *); | 49 | STATIC int xfs_uuid_mount(xfs_mount_t *); |
50 | STATIC void xfs_uuid_unmount(xfs_mount_t *mp); | ||
51 | STATIC void xfs_unmountfs_wait(xfs_mount_t *); | 50 | STATIC void xfs_unmountfs_wait(xfs_mount_t *); |
52 | 51 | ||
53 | 52 | ||
@@ -1268,7 +1267,7 @@ xfs_mountfs( | |||
1268 | /* FALLTHROUGH */ | 1267 | /* FALLTHROUGH */ |
1269 | error1: | 1268 | error1: |
1270 | if (uuid_mounted) | 1269 | if (uuid_mounted) |
1271 | xfs_uuid_unmount(mp); | 1270 | uuid_table_remove(&mp->m_sb.sb_uuid); |
1272 | xfs_freesb(mp); | 1271 | xfs_freesb(mp); |
1273 | return error; | 1272 | return error; |
1274 | } | 1273 | } |
@@ -1349,7 +1348,7 @@ xfs_unmountfs(xfs_mount_t *mp, struct cred *cr) | |||
1349 | 1348 | ||
1350 | xfs_unmountfs_close(mp, cr); | 1349 | xfs_unmountfs_close(mp, cr); |
1351 | if ((mp->m_flags & XFS_MOUNT_NOUUID) == 0) | 1350 | if ((mp->m_flags & XFS_MOUNT_NOUUID) == 0) |
1352 | xfs_uuid_unmount(mp); | 1351 | uuid_table_remove(&mp->m_sb.sb_uuid); |
1353 | 1352 | ||
1354 | #if defined(DEBUG) || defined(INDUCE_IO_ERROR) | 1353 | #if defined(DEBUG) || defined(INDUCE_IO_ERROR) |
1355 | xfs_errortag_clearall(mp, 0); | 1354 | xfs_errortag_clearall(mp, 0); |
@@ -1911,16 +1910,6 @@ xfs_uuid_mount( | |||
1911 | } | 1910 | } |
1912 | 1911 | ||
1913 | /* | 1912 | /* |
1914 | * Remove filesystem from the UUID table. | ||
1915 | */ | ||
1916 | STATIC void | ||
1917 | xfs_uuid_unmount( | ||
1918 | xfs_mount_t *mp) | ||
1919 | { | ||
1920 | uuid_table_remove(&mp->m_sb.sb_uuid); | ||
1921 | } | ||
1922 | |||
1923 | /* | ||
1924 | * Used to log changes to the superblock unit and width fields which could | 1913 | * Used to log changes to the superblock unit and width fields which could |
1925 | * be altered by the mount options, as well as any potential sb_features2 | 1914 | * be altered by the mount options, as well as any potential sb_features2 |
1926 | * fixup. Only the first superblock is updated. | 1915 | * fixup. Only the first superblock is updated. |