diff options
author | Robin Dong <hao.bigrat@gmail.com> | 2011-06-27 15:35:53 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-06-27 15:35:53 -0400 |
commit | ed7a7e16724a4123fce1fc0ff1f5131a0596f189 (patch) | |
tree | 3691bbb0d11e56ee94c659361a5c5b1e4edc5c9f | |
parent | d3ad8434aa83ef7c88bc91edcfe012cdcbab9f3e (diff) |
ext4: fix incorrect error msg in ext4_ext_insert_index
In function ext4_ext_insert_index when eh_entries of curp is
bigger than eh_max, error messages will be printed out, but the content
is about logical and ei_block, that's incorret.
Signed-off-by: Robin Dong <sanbai@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | fs/ext4/extents.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index f815cc81e7a2..eb63c7b8dfd2 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -808,8 +808,9 @@ static int ext4_ext_insert_index(handle_t *handle, struct inode *inode, | |||
808 | if (unlikely(le16_to_cpu(curp->p_hdr->eh_entries) | 808 | if (unlikely(le16_to_cpu(curp->p_hdr->eh_entries) |
809 | > le16_to_cpu(curp->p_hdr->eh_max))) { | 809 | > le16_to_cpu(curp->p_hdr->eh_max))) { |
810 | EXT4_ERROR_INODE(inode, | 810 | EXT4_ERROR_INODE(inode, |
811 | "logical %d == ei_block %d!", | 811 | "eh_entries %d > eh_max %d!", |
812 | logical, le32_to_cpu(curp->p_idx->ei_block)); | 812 | le16_to_cpu(curp->p_hdr->eh_entries), |
813 | le16_to_cpu(curp->p_hdr->eh_max)); | ||
813 | return -EIO; | 814 | return -EIO; |
814 | } | 815 | } |
815 | if (unlikely(ix > EXT_LAST_INDEX(curp->p_hdr))) { | 816 | if (unlikely(ix > EXT_LAST_INDEX(curp->p_hdr))) { |