ext4: use le32_to_cpu for ext4_extent_idx.ei_block in ext4_ext_search_left()
authorTao Ma <boyu.mt@taobao.com>
Sat, 8 Oct 2011 20:08:34 +0000 (16:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 8 Oct 2011 20:08:34 +0000 (16:08 -0400)
ext4_extent_idx.e_block is __le32, so use le32_to_cpu() in
ext4_ext_search_left().

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c

index 142e3443476f375591ea3736622c454a8b319864..f473ddf0bd949f477db42d7f7145c412b67dc815 100644 (file)
@@ -1238,9 +1238,9 @@ static int ext4_ext_search_left(struct inode *inode,
                        if (unlikely(ix != EXT_FIRST_INDEX(path[depth].p_hdr))) {
                                EXT4_ERROR_INODE(inode,
                                  "ix (%d) != EXT_FIRST_INDEX (%d) (depth %d)!",
-                                 ix != NULL ? ix->ei_block : 0,
+                                 ix != NULL ? le32_to_cpu(ix->ei_block) : 0,
                                  EXT_FIRST_INDEX(path[depth].p_hdr) != NULL ?
-                                   EXT_FIRST_INDEX(path[depth].p_hdr)->ei_block : 0,
+               le32_to_cpu(EXT_FIRST_INDEX(path[depth].p_hdr)->ei_block) : 0,
                                  depth);
                                return -EIO;
                        }
This page took 0.052303 seconds and 5 git commands to generate.