Commit d921098
fs/writeback: bail out if there is no more inodes for IO and queued once
For case there is no more inodes for IO in io list from last wb_writeback,
We may bail out early even there is inode in dirty list should be written
back. Only bail out when we queued once to avoid missing dirtied inode.
This is from code reading...
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link: https://lore.kernel.org/r/20240228091958.288260-3-shikemeng@huaweicloud.com
Reviewed-by: Jan Kara <jack@suse.cz>
[brauner@kernel.org: fold in memory corruption fix from Jan in [1]]
Link: https://lore.kernel.org/r/20240405132346.bid7gibby3lxxhez@quack3 [1]
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent ac0c18f commit d921098
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2076 | 2076 | | |
2077 | 2077 | | |
2078 | 2078 | | |
| 2079 | + | |
2079 | 2080 | | |
2080 | 2081 | | |
2081 | 2082 | | |
| |||
2118 | 2119 | | |
2119 | 2120 | | |
2120 | 2121 | | |
2121 | | - | |
| 2122 | + | |
2122 | 2123 | | |
| 2124 | + | |
| 2125 | + | |
2123 | 2126 | | |
2124 | 2127 | | |
2125 | 2128 | | |
| |||
2134 | 2137 | | |
2135 | 2138 | | |
2136 | 2139 | | |
2137 | | - | |
| 2140 | + | |
2138 | 2141 | | |
2139 | 2142 | | |
2140 | 2143 | | |
| |||
0 commit comments