Skip to content

Commit

Permalink
Suppress 'zfs_sb_create' memory warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Closes #628
  • Loading branch information
behlendorf committed Aug 10, 2012
1 parent bb8b81e commit bafc4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bafc4e9

Please sign in to comment.