diff options
author | Jan Kara <[email protected]> | 2022-12-07 12:27:07 +0100 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2022-12-08 21:49:25 -0500 |
commit | 5c27088b3bcf82c8525ec55cde7d2ddd034283b6 (patch) | |
tree | 96f5c7cd462e52ed37ff6cc51630fdfcf3edc5c1 | |
parent | 29b83c574b0a06f29126e4e18801ba0e5d2e089b (diff) |
ext4: drop pointless IO submission from ext4_bio_write_page()
We submit outstanding IO in ext4_bio_write_page() if we find a buffer we
are not going to write. This is however pointless because we already
handle submission of previous IO in case we detect newly added buffer
head is discontiguous. So just delete the pointless IO submission call.
Reviewed-by: Ritesh Harjani (IBM) <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r-- | fs/ext4/page-io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 2bdfb8a046d9..beaec6d81074 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -489,8 +489,6 @@ int ext4_bio_write_page(struct ext4_io_submit *io, redirty_page_for_writepage(wbc, page); keep_towrite = true; } - if (io->io_bio) - ext4_io_submit(io); continue; } if (buffer_new(bh)) |