From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karel Zak Subject: [PATCH 04/22] configfs: move CONFIGFS_MAGIC to Date: Tue, 4 Mar 2014 11:00:40 +0100 Message-ID: <1393927258-10709-5-git-send-email-kzak@redhat.com> References: <1393927258-10709-1-git-send-email-kzak@redhat.com> Cc: linux-fsdevel@vger.kernel.org, Karel Zak To: Al Viro Return-path: Received: from mx1.redhat.com ([209.132.183.28]:31495 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756749AbaCDKBq (ORCPT ); Tue, 4 Mar 2014 05:01:46 -0500 In-Reply-To: <1393927258-10709-1-git-send-email-kzak@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Move the magic number to proper place. Signed-off-by: Karel Zak --- fs/configfs/mount.c | 4 +--- include/uapi/linux/magic.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c index 7f26c3c..e7b80af 100644 --- a/fs/configfs/mount.c +++ b/fs/configfs/mount.c @@ -30,13 +30,11 @@ #include #include #include +#include #include #include "configfs_internal.h" -/* Random magic number */ -#define CONFIGFS_MAGIC 0x62656570 - static struct vfsmount *configfs_mount = NULL; struct kmem_cache *configfs_dir_cachep; static int configfs_mnt_count = 0; diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h index 566788e..12bac3f 100644 --- a/include/uapi/linux/magic.h +++ b/include/uapi/linux/magic.h @@ -7,6 +7,7 @@ #define AUTOFS_SUPER_MAGIC 0x0187 #define CIFS_MAGIC_NUMBER 0xff534d42 #define CODA_SUPER_MAGIC 0x73757245 +#define CONFIGFS_MAGIC 0x62656570 /* some random number */ #define CRAMFS_MAGIC 0x28cd3d45 /* some random number */ #define CRAMFS_MAGIC_WEND 0x453dcd28 /* magic number with the wrong endianess */ #define DEBUGFS_MAGIC 0x64626720 -- 1.8.5.3