mm: optimize lru_note_cost() by adding lru_note_cost_unlock_irq() fix
PATCH 1/1 mm: optimize lru_note_cost() by adding lru_note_cost_unlock_irq() fix
Delete the comment from above the deleted spin_lock_irq(): it was all to justify the first iteration's spin_lock_irq(), none suitable for moving down to where the parent's spin_lock_irq() is now done.
Signed-off-by Hugh Dickins <[email protected]>
---
Thank you all for the warm reception! Sorry, I missed this deletion.
mm/swap.c | 7 ------- 1 file changed, 7 deletions(-)
mm/swap.c +0 -7
@@ -259,13 +259,6 @@ void lru_note_cost_unlock_irq(struct lruvec *lruvec, bool file,for (;;) {unsigned long lrusize; -/* -* Hold lruvec->lru_lock is safe here, since -* 1) The pinned lruvec in reclaim, or -* 2) From a pre-LRU page during refault (which also holds the -* rcu lock, so would be safe even if the page was on the LRU -* and could move simultaneously to a new lruvec). -*/ /* Record cost event */ if (file) lruvec->file_cost += cost;
Signature · 1 line
2.43.0