From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Mon, 29 Aug 2016 16:09:43 +0200 Subject: [U-Boot] [PATCH v3 12/13] ext4: Use correct value for inode size even on revision 0 filesystems In-Reply-To: References: <20160828204238.10809-1-stefan.bruens@rwth-aachen.de> Message-ID: <20160829160943.1b9183cb@amdc2363> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, > fs->inodesz is already correctly (i.e. dependent on fs revision) > initialized in ext4fs_mount. > > Signed-off-by: Stefan Br?ns > --- > 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 Reviewed-by: Lukasz Majewski -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group