aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2015-11-02 21:27:58 -0500
committerDave Chinner <david@fromorbit.com>2015-11-02 21:27:58 -0500
commit2da5c4b05ab55225f5d1fcc8c1c37d1918232bf4 (patch)
treef19bd87d6e66c251566be226fdf40c24c168e04a /fs/xfs/xfs_mount.c
parentfcd8a399a9d44a637b5ded0eeea14c7933132121 (diff)
parentfc0561cefc04e7803c0f6501ca4f310a502f65b8 (diff)
Merge branch 'xfs-misc-fixes-for-4.4-2' into for-next
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index eb498ce39f4c..bb753b359bee 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -47,6 +47,16 @@ static DEFINE_MUTEX(xfs_uuid_table_mutex);
47static int xfs_uuid_table_size; 47static int xfs_uuid_table_size;
48static uuid_t *xfs_uuid_table; 48static uuid_t *xfs_uuid_table;
49 49
50void
51xfs_uuid_table_free(void)
52{
53 if (xfs_uuid_table_size == 0)
54 return;
55 kmem_free(xfs_uuid_table);
56 xfs_uuid_table = NULL;
57 xfs_uuid_table_size = 0;
58}
59
50/* 60/*
51 * See if the UUID is unique among mounted XFS filesystems. 61 * See if the UUID is unique among mounted XFS filesystems.
52 * Mount fails if UUID is nil or a FS with the same UUID is already mounted. 62 * Mount fails if UUID is nil or a FS with the same UUID is already mounted.