Commit d04647a4 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] backward ext3 endianness conversion

From:  Andreas Dilger <adilger@clusterfs.com>

  This fixes a minor thinko in the endianness conversion of
  i_generation.  This bug is not present in ext2, but is on both 2.4
  and 2.5 ext3.  The same patch applies cleanly to both kernels.
parent 6cd95462
......@@ -2413,7 +2413,7 @@ static int ext3_do_update_inode(handle_t *handle,
}
}
}
raw_inode->i_generation = le32_to_cpu(inode->i_generation);
raw_inode->i_generation = cpu_to_le32(inode->i_generation);
if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode))
raw_inode->i_block[0] =
cpu_to_le32(kdev_t_to_nr(inode->i_rdev));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment