Commit dbf2bab
jbd2: simplify journal_clean_one_cp_list()
Now that __try_to_free_cp_buf() remove checkpointed buffer or transaction
when the buffer is not 'busy', which is only called by
journal_clean_one_cp_list(). This patch simplify this function by remove
__try_to_free_cp_buf() and invoke __cp_buffer_busy() directly.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210610112440.3438139-7-yi.zhang@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 4ba3fcd commit dbf2bab
1 file changed
Lines changed: 4 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 94 | | |
114 | 95 | | |
115 | 96 | | |
| |||
440 | 421 | | |
441 | 422 | | |
442 | 423 | | |
443 | | - | |
444 | 424 | | |
445 | 425 | | |
446 | 426 | | |
| |||
449 | 429 | | |
450 | 430 | | |
451 | 431 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 432 | + | |
| 433 | + | |
457 | 434 | | |
458 | | - | |
| 435 | + | |
| 436 | + | |
459 | 437 | | |
460 | 438 | | |
461 | 439 | | |
| |||
0 commit comments