Skip to content

Commit 7c7aff6

Browse files
rakeshpanditgregkh
authored andcommitted
ext4: fix warning inside ext4_convert_unwritten_extents_endio
commit e3d550c upstream. Really enable warning when CONFIG_EXT4_DEBUG is set and fix missing first argument. This was introduced in commit ff95ec2 ("ext4: add warning to ext4_convert_unwritten_extents_endio") and splitting extents inside endio would trigger it. Fixes: ff95ec2 ("ext4: add warning to ext4_convert_unwritten_extents_endio") Signed-off-by: Rakesh Pandit <rakesh@tuxera.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 026f900 commit 7c7aff6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/ext4/extents.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3813,8 +3813,8 @@ static int ext4_convert_unwritten_extents_endio(handle_t *handle,
38133813
* illegal.
38143814
*/
38153815
if (ee_block != map->m_lblk || ee_len > map->m_len) {
3816-
#ifdef EXT4_DEBUG
3817-
ext4_warning("Inode (%ld) finished: extent logical block %llu,"
3816+
#ifdef CONFIG_EXT4_DEBUG
3817+
ext4_warning(inode->i_sb, "Inode (%ld) finished: extent logical block %llu,"
38183818
" len %u; IO logical block %llu, len %u",
38193819
inode->i_ino, (unsigned long long)ee_block, ee_len,
38203820
(unsigned long long)map->m_lblk, map->m_len);

0 commit comments

Comments
 (0)