projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b148918
)
jbd2: clean up misleading comments for jbd2_fc_release_bufs
author
yangerkun
<yangerkun@huawei.com>
Tue, 8 Jun 2021 14:12:36 +0000
(22:12 +0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 24 Jun 2021 14:27:32 +0000
(10:27 -0400)
This comments was for jbd2_fc_wait_bufs, not for jbd2_fc_release_bufs.
Remove this misleading comments.
Signed-off-by: yangerkun <yangerkun@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link:
https://lore.kernel.org/r/20210608141236.459441-1-yangerkun@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c
patch
|
blob
|
history
diff --git
a/fs/jbd2/journal.c
b/fs/jbd2/journal.c
index 3a2ed60ea8b7f14d1668f3e0c00a652a123c10e9..f88895b4920cd6d733009c81e678f09e91f08f60 100644
(file)
--- a/
fs/jbd2/journal.c
+++ b/
fs/jbd2/journal.c
@@
-934,10
+934,6
@@
int jbd2_fc_wait_bufs(journal_t *journal, int num_blks)
}
EXPORT_SYMBOL(jbd2_fc_wait_bufs);
-/*
- * Wait on fast commit buffers that were allocated by jbd2_fc_get_buf
- * for completion.
- */
int jbd2_fc_release_bufs(journal_t *journal)
{
struct buffer_head *bh;
@@
-945,10
+941,6
@@
int jbd2_fc_release_bufs(journal_t *journal)
j_fc_off = journal->j_fc_off;
- /*
- * Wait in reverse order to minimize chances of us being woken up before
- * all IOs have completed
- */
for (i = j_fc_off - 1; i >= 0; i--) {
bh = journal->j_fc_wbuf[i];
if (!bh)