Skip to content

Commit e3d550c

Browse files
rakeshpandittytso
authored andcommitted
ext4: fix warning inside ext4_convert_unwritten_extents_endio
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
1 parent 7a14826 commit e3d550c

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
@@ -3859,8 +3859,8 @@ static int ext4_convert_unwritten_extents_endio(handle_t *handle,
38593859
* illegal.
38603860
*/
38613861
if (ee_block != map->m_lblk || ee_len > map->m_len) {
3862-
#ifdef EXT4_DEBUG
3863-
ext4_warning("Inode (%ld) finished: extent logical block %llu,"
3862+
#ifdef CONFIG_EXT4_DEBUG
3863+
ext4_warning(inode->i_sb, "Inode (%ld) finished: extent logical block %llu,"
38643864
" len %u; IO logical block %llu, len %u",
38653865
inode->i_ino, (unsigned long long)ee_block, ee_len,
38663866
(unsigned long long)map->m_lblk, map->m_len);

0 commit comments

Comments
 (0)