Commit 7b001d6a authored by Jan Kara's avatar Jan Kara Committed by Theodore Ts'o
Browse files

ext4: clear buffer_uninit flag when submitting IO

Currently noone cleared buffer_uninit flag. This results in writeback
needlessly marking io_end as needing extent conversion scanning extent
tree for extents to convert. So clear the buffer_uninit flag once the
buffer is submitted for IO and the flag is transformed into

Signed-off-by: default avatarJan Kara <>
Signed-off-by: default avatar"Theodore Ts'o" <>
Reviewed-by: default avatarZheng Liu <>
parent 4eec708d
...@@ -387,7 +387,7 @@ submit_and_retry: ...@@ -387,7 +387,7 @@ submit_and_retry:
if (ret != bh->b_size) if (ret != bh->b_size)
goto submit_and_retry; goto submit_and_retry;
io_end = io->io_end; io_end = io->io_end;
if (buffer_uninit(bh)) if (test_clear_buffer_uninit(bh))
ext4_set_io_unwritten_flag(inode, io_end); ext4_set_io_unwritten_flag(inode, io_end);
io_end->size += bh->b_size; io_end->size += bh->b_size;
io->io_next_block++; io->io_next_block++;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment