]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/btrfs/super.c
btrfs: Fix compile error when CONFIG_SECURITY is not set.
[mirror_ubuntu-artful-kernel.git] / fs / btrfs / super.c
index 22502848c27f4bd9167b17de16f7b2174d9a0b8d..a2b97ef10317081aebaa09aedeaddf4dec71a492 100644 (file)
@@ -1248,6 +1248,7 @@ static int setup_security_options(struct btrfs_fs_info *fs_info,
        if (ret)
                return ret;
 
+#ifdef CONFIG_SECURITY
        if (!fs_info->security_opts.num_mnt_opts) {
                /* first time security setup, copy sec_opts to fs_info */
                memcpy(&fs_info->security_opts, sec_opts, sizeof(*sec_opts));
@@ -1260,6 +1261,7 @@ static int setup_security_options(struct btrfs_fs_info *fs_info,
                 */
                security_free_mnt_opts(sec_opts);
        }
+#endif
        return ret;
 }