From: Theodore Ts'o Date: Fri, 15 Jun 2018 16:27:16 +0000 (-0400) Subject: ext4: include the illegal physical block in the bad map ext4_error msg X-Git-Tag: v4.18-rc4~7^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdbd6ce01a70f02e9373a584d0ae9538dcf0a121;p=thirdparty%2Flinux.git ext4: include the illegal physical block in the bad map ext4_error msg Signed-off-by: Theodore Ts'o Cc: stable@kernel.org --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 2ea07efbe0165..c2f4ccb880c43 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, if (!ext4_data_block_valid(EXT4_SB(inode->i_sb), map->m_pblk, map->m_len)) { ext4_error_inode(inode, func, line, map->m_pblk, - "lblock %lu mapped to illegal pblock " + "lblock %lu mapped to illegal pblock %llu " "(length %d)", (unsigned long) map->m_lblk, - map->m_len); + map->m_pblk, map->m_len); return -EFSCORRUPTED; } return 0;