Commit 7e871b6c authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds

[PATCH] mm: update stale comment for removal of page->list

Update comment for the 2.6.6-rc1 conversion from page->list and
address_space->{clean,dirty,locked}_pages to radix tree tagging and ->lru.

I've mostly avoided to mention page lists (at least I've shortened the
comment).
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f875a1a6
...@@ -350,7 +350,8 @@ static inline void put_page(struct page *page) ...@@ -350,7 +350,8 @@ static inline void put_page(struct page *page)
* only one copy in memory, at most, normally. * only one copy in memory, at most, normally.
* *
* For the non-reserved pages, page_count(page) denotes a reference count. * For the non-reserved pages, page_count(page) denotes a reference count.
* page_count() == 0 means the page is free. * page_count() == 0 means the page is free. page->lru is then used for
* freelist management in the buddy allocator.
* page_count() == 1 means the page is used for exactly one purpose * page_count() == 1 means the page is used for exactly one purpose
* (e.g. a private data page of one process). * (e.g. a private data page of one process).
* *
...@@ -376,10 +377,8 @@ static inline void put_page(struct page *page) ...@@ -376,10 +377,8 @@ static inline void put_page(struct page *page)
* attaches, plus 1 if `private' contains something, plus one for * attaches, plus 1 if `private' contains something, plus one for
* the page cache itself. * the page cache itself.
* *
* All pages belonging to an inode are in these doubly linked lists: * Instead of keeping dirty/clean pages in per address-space lists, we instead
* mapping->clean_pages, mapping->dirty_pages and mapping->locked_pages; * now tag pages as dirty/under writeback in the radix tree.
* using the page->list list_head. These fields are also used for
* freelist managemet (when page_count()==0).
* *
* There is also a per-mapping radix tree mapping index to the page * There is also a per-mapping radix tree mapping index to the page
* in memory if present. The tree is rooted at mapping->root. * in memory if present. The tree is rooted at mapping->root.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment