From patchwork Sun May 21 15:40:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9739125 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0304060328 for ; Sun, 21 May 2017 15:41:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED0EE28694 for ; Sun, 21 May 2017 15:41:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E13E4286C7; Sun, 21 May 2017 15:41:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BB9328694 for ; Sun, 21 May 2017 15:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756800AbdEUPkk (ORCPT ); Sun, 21 May 2017 11:40:40 -0400 Received: from mailrelay108.isp.belgacom.be ([195.238.20.135]:62553 "EHLO mailrelay108.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753369AbdEUPkh (ORCPT ); Sun, 21 May 2017 11:40:37 -0400 X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3AxDJgRxJqUjXTlt4z1dmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgXKvjyrarrMEGX3/hxlliBBdydsKMazbeJ++C4ACpbsMnH6ChDOLV3FDY7yu?= =?us-ascii?q?wu3DYcSPafDkP6KPO4JwcbJ+9lEG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apiryK+Q/5/7p?= =?us-ascii?q?jH42g0IdfbOz0ZQLb3C4G+xsI1+Fbnr0ntcBDWAKsxI6TOzrjl2CTDFSa2+8X6?= =?us-ascii?q?In+z40FpymApnHRo22nryB0zm0HodMamBFFF+MC3HoeJuAW/sWbyKSOMBhmCQe?= =?us-ascii?q?Vbe9U48hyQ2utAjixrpjL+rU/DAYtJ362Nh2+eLTjxcy+iJwD8mGzWGNQH97nn?= =?us-ascii?q?kSSz81wq9/u0p9xUmH0aRihPxYD9NT7etTUggmLZ7c0/B6C9fqVwLPZNiGU1im?= =?us-ascii?q?T869ATEyTtMxxcEBY1pnF9q5kB+QlxatVpYRmqyCApA56Ori3mL2b5JjymzB/L?= =?us-ascii?q?ssiVg4BM9OM3C2wKll+E7OBNiavV+ekvOEfK4d1SiF2n2OwWeUvUpbGFp+WK/L?= =?us-ascii?q?dWscd03bsZLz6xWRHPeVFb07P14Zmoa5IaxQZ4is1A0eSQ=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2DKAQCUsyFZ//gsQldcHAELAQUBGAELA?= =?us-ascii?q?QUBgj9sKIFGjnqRJAGVSoIPIYYDhX9AGAEBAQEBAQEBAQEBaiiCMyQBgx0jgRo?= =?us-ascii?q?kE4oXEbYShBGHK4ZfjQSCSgWeFpMSDZFwlEgfOIEKTx8YhG0BglA+NokZAQEB?= X-IPAS-Result: =?us-ascii?q?A2DKAQCUsyFZ//gsQldcHAELAQUBGAELAQUBgj9sKIFGjnq?= =?us-ascii?q?RJAGVSoIPIYYDhX9AGAEBAQEBAQEBAQEBaiiCMyQBgx0jgRokE4oXEbYShBGHK?= =?us-ascii?q?4ZfjQSCSgWeFpMSDZFwlEgfOIEKTx8YhG0BglA+NokZAQEB?= Received: from 248.44-66-87.adsl-dyn.isp.belgacom.be (HELO localhost.localdomain) ([87.66.44.248]) by relay.skynet.be with ESMTP; 21 May 2017 17:40:34 +0200 From: Fabian Frederick To: Alexander Viro Cc: Boaz Harrosh , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, fabf@skynet.be Subject: [PATCH 02/11 linux-next] exofs: use magic.h Date: Sun, 21 May 2017 17:40:31 +0200 Message-Id: <20170521154031.26761-1-fabf@skynet.be> X-Mailer: git-send-email 2.9.3 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Filesystems generally use SUPER_MAGIC values from magic.h instead of a local definition. Signed-off-by: Fabian Frederick --- fs/exofs/common.h | 6 +----- include/uapi/linux/magic.h | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/exofs/common.h b/fs/exofs/common.h index 7d88ef5..fb988f9 100644 --- a/fs/exofs/common.h +++ b/fs/exofs/common.h @@ -37,6 +37,7 @@ #define __EXOFS_COM_H__ #include +#include #include #include @@ -79,11 +80,6 @@ enum { #define EXOFS_BLKSHIFT 12 #define EXOFS_BLKSIZE (1UL << EXOFS_BLKSHIFT) -/**************************************************************************** - * superblock-related things - ****************************************************************************/ -#define EXOFS_SUPER_MAGIC 0x5DF5 - /* * The file system control block - stored in object EXOFS_SUPER_ID's data. * This is where the in-memory superblock is stored on disk. diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h index e3bb43b..1265355 100644 --- a/include/uapi/linux/magic.h +++ b/include/uapi/linux/magic.h @@ -26,6 +26,7 @@ #define EXT2_SUPER_MAGIC 0xEF53 #define EXT3_SUPER_MAGIC 0xEF53 #define EXT4_SUPER_MAGIC 0xEF53 +#define EXOFS_SUPER_MAGIC 0x5DF5 #define F2FS_SUPER_MAGIC 0xF2F52010 #define FUTEXFS_SUPER_MAGIC 0xBAD1DEA #define HOSTFS_SUPER_MAGIC 0x00c0ffee