projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dff4ac7
)
ext4: remove nr_submitted from ext4_bio_write_page()
author
Jan Kara
<jack@suse.cz>
Wed, 7 Dec 2022 11:27:06 +0000
(12:27 +0100)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 9 Dec 2022 02:49:25 +0000
(21:49 -0500)
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>
fs/ext4/page-io.c
patch
|
blob
|
history
diff --git
a/fs/ext4/page-io.c
b/fs/ext4/page-io.c
index
4f9ecac
..
2bdfb8a
100644
(file)
--- a/
fs/ext4/page-io.c
+++ b/
fs/ext4/page-io.c
@@
-437,7
+437,6
@@
int ext4_bio_write_page(struct ext4_io_submit *io,
unsigned block_start;
struct buffer_head *bh, *head;
int ret = 0;
- int nr_submitted = 0;
int nr_to_submit = 0;
struct writeback_control *wbc = io->io_wbc;
bool keep_towrite = false;
@@
-566,7
+565,6
@@
int ext4_bio_write_page(struct ext4_io_submit *io,
continue;
io_submit_add_bh(io, inode,
bounce_page ? bounce_page : page, bh);
- nr_submitted++;
} while ((bh = bh->b_this_page) != head);
unlock:
unlock_page(page);