diff options
author | Dave Chinner <david@fromorbit.com> | 2015-11-03 03:27:58 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-11-03 03:27:58 +0100 |
commit | 2da5c4b05ab55225f5d1fcc8c1c37d1918232bf4 (patch) | |
tree | f19bd87d6e66c251566be226fdf40c24c168e04a /fs/xfs/xfs_mount.c | |
parent | Merge branch 'xfs-stats-fixes' into for-next (diff) | |
parent | xfs: optimise away log forces on timestamp updates for fdatasync (diff) | |
download | linux-2da5c4b05ab55225f5d1fcc8c1c37d1918232bf4.tar.xz linux-2da5c4b05ab55225f5d1fcc8c1c37d1918232bf4.zip |
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.c | 10 |
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); static int xfs_uuid_table_size; static uuid_t *xfs_uuid_table; +void +xfs_uuid_table_free(void) +{ + if (xfs_uuid_table_size == 0) + return; + kmem_free(xfs_uuid_table); + xfs_uuid_table = NULL; + xfs_uuid_table_size = 0; +} + /* * See if the UUID is unique among mounted XFS filesystems. * Mount fails if UUID is nil or a FS with the same UUID is already mounted. |