diff options
| author | yangge <[email protected]> | 2024-08-13 17:52:23 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-01 20:26:10 -0700 |
| commit | 67b9a353e171c3969223e53308feb15b722bb64a (patch) | |
| tree | d923293b7295602f02a91d9d478454173f85ca7c /tools/perf/scripts/python/netdev-times.py | |
| parent | b6273b55d88539c6a7127a697c61d3f89c5831fe (diff) | |
mm/swap: take folio refcount after testing the LRU flag
Whoever passes a folio to __folio_batch_add_and_move() must hold a
reference, otherwise something else would already be messed up. If the
folio is referenced, it will not be freed elsewhere, so we can safely
clear the folio's lru flag. As discussed with David in [1], we should
take the reference after testing the LRU flag, not before.
Link: https://lore.kernel.org/lkml/[email protected]/ [1]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: yangge <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Yu Zhao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions