Commit 07e09c4
mm/huge_memory: work on folio->swap instead of page->private when splitting folio
Let's work on folio->swap instead. While at it, use folio_test_anon() and
folio_test_swapcache() -- the original folio remains valid even after
splitting (but is then an order-0 folio).
We can probably convert a lot more to folios in that code, let's focus on
folio->swap handling only for now.
Link: https://lkml.kernel.org/r/20230821160849.531668-5-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Chris Li <chrisl@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 3d2c908 commit 07e09c4
1 file changed
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2401 | 2401 | | |
2402 | 2402 | | |
2403 | 2403 | | |
2404 | | - | |
| 2404 | + | |
2405 | 2405 | | |
2406 | 2406 | | |
| 2407 | + | |
2407 | 2408 | | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
2408 | 2414 | | |
2409 | 2415 | | |
2410 | 2416 | | |
| |||
2453 | 2459 | | |
2454 | 2460 | | |
2455 | 2461 | | |
2456 | | - | |
2457 | | - | |
| 2462 | + | |
| 2463 | + | |
2458 | 2464 | | |
2459 | 2465 | | |
2460 | 2466 | | |
| |||
2500 | 2506 | | |
2501 | 2507 | | |
2502 | 2508 | | |
2503 | | - | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
2508 | 2512 | | |
2509 | 2513 | | |
2510 | 2514 | | |
| |||
2514 | 2518 | | |
2515 | 2519 | | |
2516 | 2520 | | |
2517 | | - | |
| 2521 | + | |
2518 | 2522 | | |
2519 | 2523 | | |
2520 | 2524 | | |
| |||
2559 | 2563 | | |
2560 | 2564 | | |
2561 | 2565 | | |
2562 | | - | |
2563 | | - | |
2564 | | - | |
2565 | | - | |
2566 | | - | |
| 2566 | + | |
| 2567 | + | |
2567 | 2568 | | |
2568 | 2569 | | |
2569 | 2570 | | |
| |||
0 commit comments