aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/xattr.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2004-09-21 18:32:22 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-21 18:32:22 -0700
commit5c520b7f25de46446d3a634572b62b6cda4ae171 (patch)
treec2d1705675cbcd0b3a4d9f8f761522a4b05c1d28 /fs/ext3/xattr.c
parent31cb962ed8d685f76c5f70ee349b63b87f522af8 (diff)
downloadhistory-5c520b7f25de46446d3a634572b62b6cda4ae171.tar.gz
[PATCH] ext3 endianness annotations and bugfixes
* missing le32_to_cpu() in a bunch of printks * on big-endian boxen ext3_error() failed to set EXT3_ERROR_FS in ->s_state (cpu_to_le32() instead of cpu_to_le16()) Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext3/xattr.c')
-rw-r--r--fs/ext3/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c
index 163db30a214e85..e6df2ba425d6dc 100644
--- a/fs/ext3/xattr.c
+++ b/fs/ext3/xattr.c
@@ -1130,7 +1130,7 @@ static inline void ext3_xattr_hash_entry(struct ext3_xattr_header *header,
}
if (entry->e_value_block == 0 && entry->e_value_size != 0) {
- __u32 *value = (__u32 *)((char *)header +
+ __le32 *value = (__le32 *)((char *)header +
le16_to_cpu(entry->e_value_offs));
for (n = (le32_to_cpu(entry->e_value_size) +
EXT3_XATTR_ROUND) >> EXT3_XATTR_PAD_BITS; n; n--) {