Btrfs: add some free space cache tests
[deliverable/linux.git] / fs / btrfs / super.c
index f6b88595f858b08f47fd530f3409124c288eb852..714ae479de2ee716ee6648d6eafd2e617f72d0b8 100644 (file)
@@ -56,6 +56,7 @@
 #include "compression.h"
 #include "rcu-string.h"
 #include "dev-replace.h"
+#include "free-space-cache.h"
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/btrfs.h>
@@ -1739,6 +1740,10 @@ static int __init init_btrfs_fs(void)
 
        btrfs_init_lockdep();
 
+#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
+       btrfs_test_free_space_cache();
+#endif
+
        printk(KERN_INFO "%s loaded\n", BTRFS_BUILD_VERSION);
        return 0;
 
This page took 0.028595 seconds and 5 git commands to generate.