diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2013-04-09 23:56:44 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-09 23:56:44 -0400 |
commit | 0b65349ebc24b80cf9f6654a1c4f66c8c796e9f1 (patch) | |
tree | 4565a01555384bf9bf78e77bf4cadcf730ed5a1f /fs/ext4 | |
parent | 8c8e0ca622847a8b1b281b8927d62229effa0004 (diff) |
ext4: fix big-endian bug in extent migration code
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/ext4')
-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 8b158ae2443b..34ba222f32fa 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -4756,7 +4756,7 @@ int ext4_ind_migrate(struct inode *inode) | |||
4756 | eh = ext_inode_hdr(inode); | 4756 | eh = ext_inode_hdr(inode); |
4757 | ex = EXT_FIRST_EXTENT(eh); | 4757 | ex = EXT_FIRST_EXTENT(eh); |
4758 | if (ext4_blocks_count(es) > EXT4_MAX_BLOCK_FILE_PHYS || | 4758 | if (ext4_blocks_count(es) > EXT4_MAX_BLOCK_FILE_PHYS || |
4759 | eh->eh_depth != 0 || eh->eh_entries > 1) { | 4759 | eh->eh_depth != 0 || le16_to_cpu(eh->eh_entries) > 1) { |
4760 | ret = -EOPNOTSUPP; | 4760 | ret = -EOPNOTSUPP; |
4761 | goto errout; | 4761 | goto errout; |
4762 | } | 4762 | } |