diff options
author | Theodore Ts'o <tytso@mit.edu> | 2018-06-15 12:27:16 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-06-15 12:27:16 -0400 |
commit | bdbd6ce01a70f02e9373a584d0ae9538dcf0a121 (patch) | |
tree | 1b4dab0854386cd97f327e1da223a0d427edba68 | |
parent | bc890a60247171294acc0bd67d211fa4b88d40ba (diff) |
ext4: include the illegal physical block in the bad map ext4_error msg
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 2ea07efbe016..c2f4ccb880c4 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -402,9 +402,9 @@ static int __check_block_validity(struct inode *inode, const char *func, | |||
402 | if (!ext4_data_block_valid(EXT4_SB(inode->i_sb), map->m_pblk, | 402 | if (!ext4_data_block_valid(EXT4_SB(inode->i_sb), map->m_pblk, |
403 | map->m_len)) { | 403 | map->m_len)) { |
404 | ext4_error_inode(inode, func, line, map->m_pblk, | 404 | ext4_error_inode(inode, func, line, map->m_pblk, |
405 | "lblock %lu mapped to illegal pblock " | 405 | "lblock %lu mapped to illegal pblock %llu " |
406 | "(length %d)", (unsigned long) map->m_lblk, | 406 | "(length %d)", (unsigned long) map->m_lblk, |
407 | map->m_len); | 407 | map->m_pblk, map->m_len); |
408 | return -EFSCORRUPTED; | 408 | return -EFSCORRUPTED; |
409 | } | 409 | } |
410 | return 0; | 410 | return 0; |