]> git.proxmox.com Git - mirror_spl.git/commitdiff
Set HAVE_FS_STRUCT_SPINLOCK correctly when CONFIG_FRAME_WARN==1024
authorTim Chase <tim@chase2k.com>
Mon, 23 Mar 2015 02:43:21 +0000 (21:43 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 24 Mar 2015 20:25:25 +0000 (13:25 -0700)
If kernel lock debugging is enabled, the fs_struct structure exceeds the
typical 1024 byte limit of CONFIG_FRAME_WARN and isn't enabled when it
otherwise should be.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #440

config/spl-build.m4

index 4b55809ce09de09e74fa178af9c947d0b8416a09..82fbea0c352be125e31ff5a72bb85c8792819185 100644 (file)
@@ -1033,7 +1033,7 @@ AC_DEFUN([SPL_AC_FS_STRUCT_SPINLOCK], [
                #include <linux/sched.h>
                #include <linux/fs_struct.h>
        ],[
-               struct fs_struct fs;
+               static struct fs_struct fs;
                spin_lock_init(&fs.lock);
        ],[
                AC_MSG_RESULT(yes)