summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2022-12-07 12:27:07 +0100
committerTheodore Ts'o <tytso@mit.edu>2022-12-08 21:49:25 -0500
commit5c27088b3bcf82c8525ec55cde7d2ddd034283b6 (patch)
tree96f5c7cd462e52ed37ff6cc51630fdfcf3edc5c1 /fs/ext4
parent29b83c574b0a06f29126e4e18801ba0e5d2e089b (diff)
downloadlinux-stable-5c27088b3bcf82c8525ec55cde7d2ddd034283b6.tar.gz
linux-stable-5c27088b3bcf82c8525ec55cde7d2ddd034283b6.tar.bz2
linux-stable-5c27088b3bcf82c8525ec55cde7d2ddd034283b6.zip
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) <ritesh.list@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20221207112722.22220-4-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/page-io.c2
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))