Hugh Dickins
fc2acab31b
[PATCH] mm: tlb_finish_mmu forget rss
...
zap_pte_range has been counting the pages it frees in tlb->freed, then
tlb_finish_mmu has used that to update the mm's rss. That got stranger when I
added anon_rss, yet updated it by a different route; and stranger when rss and
anon_rss became mm_counters with special access macros. And it would no
longer be viable if we're relying on page_table_lock to stabilize the
mm_counter, but calling tlb_finish_mmu outside that lock.
Remove the mmu_gather's freed field, let tlb_finish_mmu stick to its own
business, just decrement the rss mm_counter in zap_pte_range (yes, there was
some point to batching the update, and a subsequent patch restores that). And
forget the anal paranoia of first reading the counter to avoid going negative
- if rss does go negative, just fix that bug.
Remove the mmu_gather's flushes and avoided_flushes from arm and arm26: no use
was being made of them. But arm26 alone was actually using the freed, in the
way some others use need_flush: give it a need_flush. arm26 seems to prefer
spaces to tabs here: respect that.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:37 -07:00
..
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-29 21:44:55 +01:00
2005-10-10 10:20:06 +01:00
2005-10-29 16:08:31 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:21 -07:00
2005-10-26 15:04:21 +01:00
2005-08-23 18:43:45 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-08 15:32:23 +01:00
2005-04-16 15:20:36 -07:00
2005-08-23 18:43:45 -07:00
2005-08-23 18:43:45 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-28 08:16:47 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-30 00:17:35 +01:00
2005-07-26 14:35:41 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:38 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-18 21:11:08 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-27 15:58:39 +01:00
2005-10-28 10:20:25 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-18 07:51:34 +01:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:44:56 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-07 16:50:16 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:05:39 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-08 14:57:25 -07:00
2005-04-16 15:20:36 -07:00
2005-06-22 20:58:29 +01:00
2005-09-13 08:22:33 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-05 13:11:00 +01:00
2005-04-16 15:20:36 -07:00
2005-04-17 15:50:36 +01:00
2005-04-16 15:20:36 -07:00
2005-04-30 12:19:28 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-20 16:25:12 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-26 15:30:20 +01:00
2005-04-16 15:20:36 -07:00
2005-07-11 17:38:36 +01:00
2005-08-29 15:31:35 -07:00
2005-04-16 15:20:36 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:06:21 -07:00
2005-07-04 13:02:46 +01:00
2005-04-16 15:20:36 -07:00
2005-04-25 23:40:05 +01:00
2005-04-16 15:20:36 -07:00
2005-07-26 19:44:26 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-23 09:45:19 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:37 -07:00
2005-06-28 13:40:39 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:05:48 -07:00
2005-09-07 16:57:35 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-09 11:12:51 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00