Commit b426260
mm: use folio_xor_flags_has_waiters() in folio_end_writeback()
mainline inclusion
from mainline-v6.7-rc1
category: performance
Match how folio_unlock() works by combining the test for PG_waiters with
the clearing of PG_writeback. This should have a small performance win,
and removes the last user of folio_wake().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: Albert Ou <[email protected]>
Cc: Alexander Gordeev <[email protected]>
Cc: Andreas Dilger <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Paul Walmsley <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: "Theodore Ts'o" <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
(cherry picked from commit 2580d55)
Signed-off-by: Wentao Guan <[email protected]>1 parent b30a671 commit b426260
3 files changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | 1189 | | |
1197 | 1190 | | |
1198 | 1191 | | |
| |||
1629 | 1622 | | |
1630 | 1623 | | |
1631 | 1624 | | |
1632 | | - | |
| 1625 | + | |
1633 | 1626 | | |
1634 | 1627 | | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
1638 | | - | |
| 1628 | + | |
| 1629 | + | |
1639 | 1630 | | |
1640 | 1631 | | |
1641 | 1632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2995 | 2995 | | |
2996 | 2996 | | |
2997 | 2997 | | |
2998 | | - | |
| 2998 | + | |
2999 | 2999 | | |
3000 | 3000 | | |
3001 | 3001 | | |
| 3002 | + | |
3002 | 3003 | | |
3003 | 3004 | | |
3004 | 3005 | | |
| |||
3007 | 3008 | | |
3008 | 3009 | | |
3009 | 3010 | | |
3010 | | - | |
| 3011 | + | |
3011 | 3012 | | |
3012 | 3013 | | |
3013 | 3014 | | |
| |||
3025 | 3026 | | |
3026 | 3027 | | |
3027 | 3028 | | |
3028 | | - | |
| 3029 | + | |
3029 | 3030 | | |
3030 | 3031 | | |
3031 | 3032 | | |
3032 | 3033 | | |
3033 | 3034 | | |
3034 | 3035 | | |
| 3036 | + | |
| 3037 | + | |
3035 | 3038 | | |
3036 | 3039 | | |
3037 | 3040 | | |
| |||
0 commit comments