Skip to content

Commit d07621d

Browse files
yangerkuntytso
authored andcommitted
jbd2: clean up misleading comments for jbd2_fc_release_bufs
This comments was for jbd2_fc_wait_bufs, not for jbd2_fc_release_bufs. Remove this misleading comments. Signed-off-by: yangerkun <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent b148918 commit d07621d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

fs/jbd2/journal.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -934,21 +934,13 @@ int jbd2_fc_wait_bufs(journal_t *journal, int num_blks)
934934
}
935935
EXPORT_SYMBOL(jbd2_fc_wait_bufs);
936936

937-
/*
938-
* Wait on fast commit buffers that were allocated by jbd2_fc_get_buf
939-
* for completion.
940-
*/
941937
int jbd2_fc_release_bufs(journal_t *journal)
942938
{
943939
struct buffer_head *bh;
944940
int i, j_fc_off;
945941

946942
j_fc_off = journal->j_fc_off;
947943

948-
/*
949-
* Wait in reverse order to minimize chances of us being woken up before
950-
* all IOs have completed
951-
*/
952944
for (i = j_fc_off - 1; i >= 0; i--) {
953945
bh = journal->j_fc_wbuf[i];
954946
if (!bh)

0 commit comments

Comments
 (0)