From owner-svn-src-head@FreeBSD.ORG Fri Feb 4 14:20:28 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0218B106566C; Fri, 4 Feb 2011 14:20:28 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E51478FC16; Fri, 4 Feb 2011 14:20:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p14EKRAc086849; Fri, 4 Feb 2011 14:20:27 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p14EKRvB086847; Fri, 4 Feb 2011 14:20:27 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201102041420.p14EKRvB086847@svn.freebsd.org> From: John Baldwin Date: Fri, 4 Feb 2011 14:20:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218273 - head/sys/fs/ext2fs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 14:20:28 -0000 Author: jhb Date: Fri Feb 4 14:20:27 2011 New Revision: 218273 URL: http://svn.freebsd.org/changeset/base/218273 Log: Collapse duplicate definitions of EXT2_SB(). Submitted by: Pedro F. Giffuni giffunip at yahoo Modified: head/sys/fs/ext2fs/ext2fs.h Modified: head/sys/fs/ext2fs/ext2fs.h ============================================================================== --- head/sys/fs/ext2fs/ext2fs.h Fri Feb 4 14:16:41 2011 (r218272) +++ head/sys/fs/ext2fs/ext2fs.h Fri Feb 4 14:20:27 2011 (r218273) @@ -39,19 +39,6 @@ #include -#if defined(_KERNEL) -/* - * FreeBSD passes the pointer to the in-core struct with relevant - * fields to EXT2_SB macro when accessing superblock fields. - */ -#define EXT2_SB(sb) (sb) -#else -/* Assume that user mode programs are passing in an ext2fs superblock, not - * a kernel struct super_block. This will allow us to call the feature-test - * macros from user land. */ -#define EXT2_SB(sb) (sb) -#endif - /* * Maximal count of links to a file */ @@ -118,10 +105,6 @@ struct ext2fs { u_int32_t reserved2[204]; }; -/* Assume that user mode programs are passing in an ext2fs superblock, not - * a kernel struct super_block. This will allow us to call the feature-test - * macros from user land. */ -#define EXT2_SB(sb) (sb) /* * In-Memory Superblock @@ -208,6 +191,11 @@ struct m_ext2fs { | EXT2F_ROCOMPAT_LARGEFILE) #define EXT2F_INCOMPAT_SUPP EXT2F_INCOMPAT_FTYPE +/* Assume that user mode programs are passing in an ext2fs superblock, not + * a kernel struct super_block. This will allow us to call the feature-test + * macros from user land. */ +#define EXT2_SB(sb) (sb) + /* * Feature set definitions */ @@ -260,6 +248,7 @@ struct ext2_gd { #define e2fs_cgload(old, new, size) memcpy((new), (old), (size)); #define e2fs_cgsave(old, new, size) memcpy((new), (old), (size)); + /* * Macro-instructions used to manage several block sizes */