swap: update function comment of release_pages

Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Fernando Luis Vazquez Cao 2008-07-29 22:33:40 -07:00 коммит произвёл Linus Torvalds
Родитель 7e6cbea39a
Коммит ab33dc09a5
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -278,9 +278,10 @@ int lru_add_drain_all(void)
* Avoid taking zone->lru_lock if possible, but if it is taken, retain it * Avoid taking zone->lru_lock if possible, but if it is taken, retain it
* for the remainder of the operation. * for the remainder of the operation.
* *
* The locking in this function is against shrink_cache(): we recheck the * The locking in this function is against shrink_inactive_list(): we recheck
* page count inside the lock to see whether shrink_cache grabbed the page * the page count inside the lock to see whether shrink_inactive_list()
* via the LRU. If it did, give up: shrink_cache will free it. * grabbed the page via the LRU. If it did, give up: shrink_inactive_list()
* will free it.
*/ */
void release_pages(struct page **pages, int nr, int cold) void release_pages(struct page **pages, int nr, int cold)
{ {