diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-12 20:32:25 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-13 10:12:08 -0400 |
commit | af1584f570b19b0285e4402a0b54731495d31784 (patch) | |
tree | 9f32e6f521d658a1365891998239198077d4b662 /fs/ext4/extents.c | |
parent | efe39651f08813180f37dc508d950fc7d92b29a8 (diff) |
ext4: fix endianness breakage in ext4_split_extent_at()
->ee_len is __le16, so assigning cpu_to_le32() to it is going to do
Bad Things(tm) on big-endian hosts...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 1421938e6792..1d418387ffb0 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -2882,7 +2882,7 @@ static int ext4_split_extent_at(handle_t *handle, | |||
2882 | if (err) | 2882 | if (err) |
2883 | goto fix_extent_len; | 2883 | goto fix_extent_len; |
2884 | /* update the extent length and mark as initialized */ | 2884 | /* update the extent length and mark as initialized */ |
2885 | ex->ee_len = cpu_to_le32(ee_len); | 2885 | ex->ee_len = cpu_to_le16(ee_len); |
2886 | ext4_ext_try_to_merge(inode, path, ex); | 2886 | ext4_ext_try_to_merge(inode, path, ex); |
2887 | err = ext4_ext_dirty(handle, inode, path + depth); | 2887 | err = ext4_ext_dirty(handle, inode, path + depth); |
2888 | goto out; | 2888 | goto out; |