Commit 1b00ab4
ksm: use a folio inside cmp_and_merge_page()
This removes the last call to page_stable_node(), so delete the wrapper.
It also removes a call to trylock_page() and saves a call to
compound_head(), as well as removing a reference to folio->page.
Link: https://lkml.kernel.org/r/20250916181219.2400258-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Longlong Xia <xialonglong@kylinos.cn>
Cc: xu xin <xu.xin16@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 19c5fb8 commit 1b00ab4
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | 1064 | | |
1070 | 1065 | | |
1071 | 1066 | | |
| |||
2225 | 2220 | | |
2226 | 2221 | | |
2227 | 2222 | | |
| 2223 | + | |
2228 | 2224 | | |
2229 | 2225 | | |
2230 | 2226 | | |
| |||
2233 | 2229 | | |
2234 | 2230 | | |
2235 | 2231 | | |
2236 | | - | |
| 2232 | + | |
2237 | 2233 | | |
2238 | 2234 | | |
2239 | 2235 | | |
| |||
2272 | 2268 | | |
2273 | 2269 | | |
2274 | 2270 | | |
2275 | | - | |
| 2271 | + | |
2276 | 2272 | | |
2277 | 2273 | | |
2278 | 2274 | | |
| |||
2353 | 2349 | | |
2354 | 2350 | | |
2355 | 2351 | | |
2356 | | - | |
| 2352 | + | |
2357 | 2353 | | |
2358 | 2354 | | |
2359 | | - | |
| 2355 | + | |
| 2356 | + | |
2360 | 2357 | | |
2361 | 2358 | | |
2362 | 2359 | | |
| |||
0 commit comments