]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ext4: Use correct value for inode size even on revision 0 filesystems
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Tue, 6 Sep 2016 02:36:52 +0000 (04:36 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2016 13:02:42 +0000 (09:02 -0400)
fs->inodesz is already correctly (i.e. dependent on fs revision)
initialized in ext4fs_mount.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
fs/ext4/ext4_write.c
include/ext_common.h

index c55e2528e344264a01d96c6232a4a96701d476d3..a438be0d6e33a6a8e991964c8002200691a3e0aa 100644 (file)
@@ -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 */
index 4cd2aa7b5accfd43d467427e47db685ff7d50b40..25216ca832bd572daea19e696e457930e917bf51 100644 (file)
@@ -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