Commit 32935e7
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 413d290 commit 32935e7
3 files changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | 1208 | | |
1216 | 1209 | | |
1217 | 1210 | | |
| |||
1648 | 1641 | | |
1649 | 1642 | | |
1650 | 1643 | | |
1651 | | - | |
| 1644 | + | |
1652 | 1645 | | |
1653 | 1646 | | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
| 1647 | + | |
| 1648 | + | |
1658 | 1649 | | |
1659 | 1650 | | |
1660 | 1651 | | |
| |||
| 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