From: Magnus Damm <magnus@valinux.co.jp>
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Cc: Magnus Damm <magnus@valinux.co.jp>, andrea@suse.de
Subject: [PATCH 06/07] Remove page_remove_rmap
Date: Thu, 8 Dec 2005 20:27:25 +0900 (JST) [thread overview]
Message-ID: <20051208113010.6309.65348.sendpatchset@cherry.local> (raw)
In-Reply-To: <20051208112940.6309.39428.sendpatchset@cherry.local>
Remove page_remove_rmap.
This patch simply removes page_remove_rmap(). It is not needed anymore.
Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
---
include/linux/rmap.h | 1 -
mm/fremap.c | 1 -
mm/memory.c | 2 --
mm/rmap.c | 2 --
4 files changed, 6 deletions(-)
--- from-0006/include/linux/rmap.h
+++ to-work/include/linux/rmap.h 2005-12-08 18:09:00.000000000 +0900
@@ -75,7 +75,6 @@ void __anon_vma_link(struct vm_area_stru
void page_add_anon_rmap(struct page *, struct vm_area_struct *, unsigned long);
void page_add_file_rmap(struct page *);
-static inline void page_remove_rmap(struct page *page) {}
static inline void page_dup_rmap(struct page *page) {}
int update_page_mapped(struct page *);
--- from-0006/mm/fremap.c
+++ to-work/mm/fremap.c 2005-12-08 18:10:07.000000000 +0900
@@ -33,7 +33,6 @@ static int zap_pte(struct mm_struct *mm,
if (page) {
if (pte_dirty(pte))
set_page_dirty(page);
- page_remove_rmap(page);
page_cache_release(page);
}
} else {
--- from-0002/mm/memory.c
+++ to-work/mm/memory.c 2005-12-08 18:10:17.000000000 +0900
@@ -649,7 +649,6 @@ static unsigned long zap_pte_range(struc
mark_page_accessed(page);
file_rss--;
}
- page_remove_rmap(page);
tlb_remove_page(tlb, page);
continue;
}
@@ -1514,7 +1513,6 @@ gotten:
page_table = pte_offset_map_lock(mm, pmd, address, &ptl);
if (likely(pte_same(*page_table, orig_pte))) {
if (old_page) {
- page_remove_rmap(old_page);
if (!PageAnon(old_page)) {
dec_mm_counter(mm, file_rss);
inc_mm_counter(mm, anon_rss);
--- from-0006/mm/rmap.c
+++ to-work/mm/rmap.c 2005-12-08 18:10:28.000000000 +0900
@@ -640,7 +640,6 @@ static int try_to_unmap_one(struct page
} else
dec_mm_counter(mm, file_rss);
- page_remove_rmap(page);
page_cache_release(page);
out_unmap:
@@ -730,7 +729,6 @@ static void try_to_unmap_cluster(unsigne
if (pte_dirty(pteval))
set_page_dirty(page);
- page_remove_rmap(page);
page_cache_release(page);
dec_mm_counter(mm, file_rss);
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2005-12-08 11:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-08 11:26 [PATCH 00/07][RFC] Remove mapcount from struct page Magnus Damm
2005-12-08 11:27 ` [PATCH 01/07] Remove page_mapcount Magnus Damm
2005-12-08 11:27 ` [PATCH 02/07] Add PG_mapped Magnus Damm
2005-12-08 11:27 ` [PATCH 03/07] Add anon_vma use count Magnus Damm
2005-12-08 11:27 ` [PATCH 04/07] Replace mapcount with PG_mapped Magnus Damm
2005-12-08 11:27 ` [PATCH 05/07] Remove reset_page_mapcount Magnus Damm
2005-12-08 11:27 ` Magnus Damm [this message]
2005-12-08 11:27 ` [PATCH 07/07] Remove page_dup_rmap Magnus Damm
2005-12-08 14:16 ` [PATCH 00/07][RFC] Remove mapcount from struct page Hugh Dickins
2005-12-08 14:16 ` Hugh Dickins
2005-12-09 2:48 ` Magnus Damm
2005-12-09 2:48 ` Magnus Damm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051208113010.6309.65348.sendpatchset@cherry.local \
--to=magnus@valinux.co.jp \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.