From patchwork Sun Aug 28 20:42:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Br=C3=BCns?= X-Patchwork-Id: 663436 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3sMmxx3BqGz9s9x for ; Mon, 29 Aug 2016 06:45:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2FB5A7533; Sun, 28 Aug 2016 22:44:13 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7vQy-dvlgQ-A; Sun, 28 Aug 2016 22:44:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 09681A75E5; Sun, 28 Aug 2016 22:43:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9CA6BA754A for ; Sun, 28 Aug 2016 22:43:11 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YQOaH8EQWrW9 for ; Sun, 28 Aug 2016 22:43:11 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mx-out-1.rwth-aachen.de (mx-out-1.rwth-aachen.de [134.130.5.186]) by theia.denx.de (Postfix) with ESMTPS id 27587A7528 for ; Sun, 28 Aug 2016 22:42:58 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.28,592,1464645600"; d="scan'208";a="544794660" Received: from rwthex-w2-b.rwth-ad.de ([134.130.26.159]) by mx-1.rz.rwth-aachen.de with ESMTP; 28 Aug 2016 22:42:58 +0200 Received: from pebbles.fritz.box (77.182.132.70) by rwthex-w2-b.rwth-ad.de (2002:8682:1a9f::8682:1a9f) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Sun, 28 Aug 2016 22:42:50 +0200 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= To: Date: Sun, 28 Aug 2016 22:42:37 +0200 X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160828204238.10809-1-stefan.bruens@rwth-aachen.de> References: <20160828204238.10809-1-stefan.bruens@rwth-aachen.de> MIME-Version: 1.0 X-Originating-IP: [77.182.132.70] X-ClientProxiedBy: rwthex-s2-a.rwth-ad.de (2002:8682:1a9a::8682:1a9a) To rwthex-w2-b.rwth-ad.de (2002:8682:1a9f::8682:1a9f) Message-ID: Cc: Stephen Warren , Stefan Roese Subject: [U-Boot] [PATCH v3 12/13] ext4: Use correct value for inode size even on revision 0 filesystems X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" fs->inodesz is already correctly (i.e. dependent on fs revision) initialized in ext4fs_mount. Signed-off-by: Stefan BrĂ¼ns Reviewed-by: Lukasz Majewski --- fs/ext4/ext4_write.c | 1 - include/ext_common.h | 2 -- 2 files changed, 3 deletions(-) v3: Patch added to series diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c index 5e208ef..81a750b 100644 --- a/fs/ext4/ext4_write.c +++ b/fs/ext4/ext4_write.c @@ -609,7 +609,6 @@ int ext4fs_init(void) /* populate fs */ fs->blksz = EXT2_BLOCK_SIZE(ext4fs_root); - fs->inodesz = INODE_SIZE_FILESYSTEM(ext4fs_root); fs->sect_perblk = fs->blksz >> fs->dev_desc->log2blksz; /* get the superblock */ diff --git a/include/ext_common.h b/include/ext_common.h index 4cd2aa7..25216ca 100644 --- a/include/ext_common.h +++ b/include/ext_common.h @@ -52,8 +52,6 @@ #define LOG2_BLOCK_SIZE(data) (le32_to_cpu \ (data->sblock.log2_block_size) \ + EXT2_MIN_BLOCK_LOG_SIZE) -#define INODE_SIZE_FILESYSTEM(data) (le16_to_cpu \ - (data->sblock.inode_size)) #define EXT2_FT_DIR 2 #define SUCCESS 1