Suppress 'zfs_sb_create' memory warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 10 Aug 2012 23:39:39 +0000 (16:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 10 Aug 2012 23:43:32 +0000 (16:43 -0700)
When mutex debugging is enabled in your kernel the increased
size of the mutex structures can push the zfs_sb_t type beyond
the 8k warning threshold.  This isn't harmful so we suppress
the warning for this case.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #628

module/zfs/zfs_vfsops.c

index 6d75326..1efe6a8 100644 (file)
@@ -584,7 +584,7 @@ zfs_sb_create(const char *osname, zfs_sb_t **zsbp)
        int i, error;
        uint64_t sa_obj;
 
-       zsb = kmem_zalloc(sizeof (zfs_sb_t), KM_SLEEP);
+       zsb = kmem_zalloc(sizeof (zfs_sb_t), KM_SLEEP | KM_NODEBUG);
 
        /*
         * We claim to always be readonly so we can open snapshots;