Skip to content

Commit ab33dc0

Browse files
Fernando Luis Vazquez Caotorvalds
authored andcommitted
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>
1 parent 7e6cbea commit ab33dc0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mm/swap.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,10 @@ int lru_add_drain_all(void)
278278
* Avoid taking zone->lru_lock if possible, but if it is taken, retain it
279279
* for the remainder of the operation.
280280
*
281-
* The locking in this function is against shrink_cache(): we recheck the
282-
* page count inside the lock to see whether shrink_cache grabbed the page
283-
* via the LRU. If it did, give up: shrink_cache will free it.
281+
* The locking in this function is against shrink_inactive_list(): we recheck
282+
* the page count inside the lock to see whether shrink_inactive_list()
283+
* grabbed the page via the LRU. If it did, give up: shrink_inactive_list()
284+
* will free it.
284285
*/
285286
void release_pages(struct page **pages, int nr, int cold)
286287
{

0 commit comments

Comments
 (0)