mm: remove redundant assignment of entry
Subsystems (2)
PATCH 1/1 mm: remove redundant assignment of entry
Since ptent will not be changed after previous assignment of entry, it is not necessary to do the assignment again.
--- mm/memory.c | 1 - 1 file changed, 1 deletion(-)
mm/memory.c +0 -1
@@ -1127,7 +1127,6 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb,if (unlikely (details))continue ; - entry =pte_to_swp_entry (ptent);if (!non_swap_entry (entry)) rss[MM_SWAPENTS ]--;else if (is_migration_entry (entry)) {
Signature · 1 line
2.17.1
Quoted 4 lines · Wei Yang
Since ptent will not be changed after previous assignment of entry, it is not necessary to do the assignment again.
Signed-off-by Wei Yang <[email protected]>
Quoted 3 lines · Wei Yang
Since ptent will not be changed after previous assignment of entry, it is not necessary to do the assignment again.
Sounds this one is lost in the time line :-)
Quoted 19 lines
Signed-off-by Wei Yang <[email protected]>---
mm/memory.c| 1 -1 file changed, 1 deletion(-)mm/memory.c +0
-1@@ -1127,7 +1127,6 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb,if (unlikely (details))continue ; - entry =pte_to_swp_entry (ptent);if (!non_swap_entry (entry)) rss[MM_SWAPENTS ]--;else if (is_migration_entry (entry)) {Signature · 1 line
2.17.1
Signature · 2 lines
Wei Yang Help you, Help me
Quoted 6 lines · Wei Yang
Quoted 3 lines · Wei Yang
Since ptent will not be changed after previous assignment of entry, it is not necessary to do the assignment again.
Sounds this one is lost in the time line :-)
Don't think so -- looks like it's in linux-next [1] via akpm to me.
Will
Quoted 10 lines · Will Deacon
Quoted 6 lines · Wei Yang
Quoted 3 lines · Wei Yang
Since ptent will not be changed after previous assignment of entry, it is not necessary to do the assignment again.
Sounds this one is lost in the time line :-)
Don't think so -- looks like it's in linux-next [1] via akpm to me.
Ah, thanks. I may miss some message.
Quoted 3 lines
Will
Signature · 2 lines
Wei Yang Help you, Help me