* __free_page() and free_pages() - Differences?
@ 1998-03-22 13:27 Chirayu Patel
1998-03-23 21:20 ` Stephen C. Tweedie
0 siblings, 1 reply; 2+ messages in thread
From: Chirayu Patel @ 1998-03-22 13:27 UTC (permalink / raw)
To: linux-mm; +Cc: linux-kernel
Hi ,
I am having trouble understanding the difference between
the __free_page function and free_pages function in page_alloc.c
The only difference which I can see is that free_pages decrement map->count
while __free_page decrements the page->count. Both of them eventually make
a call to free_pages_ok with identical parametrs.
Can anyone shed some light on this?
yet-another-mm-hacker,
Chirayu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: __free_page() and free_pages() - Differences?
1998-03-22 13:27 __free_page() and free_pages() - Differences? Chirayu Patel
@ 1998-03-23 21:20 ` Stephen C. Tweedie
0 siblings, 0 replies; 2+ messages in thread
From: Stephen C. Tweedie @ 1998-03-23 21:20 UTC (permalink / raw)
To: Chirayu Patel; +Cc: linux-mm, linux-kernel
Hi,
On Sun, 22 Mar 1998 18:57:28 +0530 (GMT+0530), Chirayu Patel
<chirayu@wipro.tcpn.com> said:
> Hi ,
> I am having trouble understanding the difference between
> the __free_page function and free_pages function in page_alloc.c
They are identical functions with different calling conventions. When
we are freeing a page, we often have a page struct already in hand, so
__free_page is an alternative way of freeing a page which avoids the
unnecessary page map lookup.
--Stephen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-03-23 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-22 13:27 __free_page() and free_pages() - Differences? Chirayu Patel
1998-03-23 21:20 ` Stephen C. Tweedie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox