public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Correct way to release get_user_pages()?
@ 2005-01-28  3:02 Roland Dreier
  2005-01-28 17:48 ` Timur Tabi
  0 siblings, 1 reply; 5+ messages in thread
From: Roland Dreier @ 2005-01-28  3:02 UTC (permalink / raw)
  To: linux-kernel

Reading through the tree, I see that some callers of get_user_pages()
release the pages that they got via put_page(), and some callers use
page_cache_release().  Of course <linux/pagemap.h> has

	#define page_cache_release(page)      put_page(page)

so this is really not much of a difference, but I'd like to know which
is considered better style.  Any opinions?

Thanks,
  Roland


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-31 21:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-28  3:02 Correct way to release get_user_pages()? Roland Dreier
2005-01-28 17:48 ` Timur Tabi
2005-01-30 10:10   ` Andrew Morton
2005-01-31 15:51     ` Timur Tabi
2005-01-31 21:01       ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox