summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index 5c77a63d101..0eb25a222de 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -745,6 +745,12 @@ pub_glfs_new (const char *volname)
return NULL;
}
+ /*
+ * Do this as soon as possible in case something else depends on
+ * pool allocations.
+ */
+ mem_pools_init ();
+
fs = glfs_new_fs (volname);
if (!fs)
return NULL;
@@ -1026,12 +1032,6 @@ pub_glfs_init (struct glfs *fs)
return ret;
}
- /*
- * Do this as soon as possible in case something else depends on
- * pool allocations.
- */
- mem_pools_init ();
-
__GLFS_ENTRY_VALIDATE_FS (fs, invalid_fs);
ret = glfs_init_common (fs);