ext4: remove nr_submitted from ext4_bio_write_page()
nr_submitted is the same as nr_to_submit. Drop one of them. 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-3-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
dff4ac75ee
commit
29b83c574b
@ -437,7 +437,6 @@ int ext4_bio_write_page(struct ext4_io_submit *io,
|
|||||||
unsigned block_start;
|
unsigned block_start;
|
||||||
struct buffer_head *bh, *head;
|
struct buffer_head *bh, *head;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int nr_submitted = 0;
|
|
||||||
int nr_to_submit = 0;
|
int nr_to_submit = 0;
|
||||||
struct writeback_control *wbc = io->io_wbc;
|
struct writeback_control *wbc = io->io_wbc;
|
||||||
bool keep_towrite = false;
|
bool keep_towrite = false;
|
||||||
@ -566,7 +565,6 @@ int ext4_bio_write_page(struct ext4_io_submit *io,
|
|||||||
continue;
|
continue;
|
||||||
io_submit_add_bh(io, inode,
|
io_submit_add_bh(io, inode,
|
||||||
bounce_page ? bounce_page : page, bh);
|
bounce_page ? bounce_page : page, bh);
|
||||||
nr_submitted++;
|
|
||||||
} while ((bh = bh->b_this_page) != head);
|
} while ((bh = bh->b_this_page) != head);
|
||||||
unlock:
|
unlock:
|
||||||
unlock_page(page);
|
unlock_page(page);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user