linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* page cache KPI
@ 2008-07-21  7:18 Francis Moreau
  0 siblings, 0 replies; only message in thread
From: Francis Moreau @ 2008-07-21  7:18 UTC (permalink / raw)
  To: linux-fsdevel

Hello,

Kernel core code is usually great and well designed IMHO.

But here I find the page cache KPI really incosistent in its routine
names. For example, here are different helpers I could find:

page_cache_get()
page_cache_release()
page_cache_alloc()

find_get_page()
find_lock_page()

grab_cache_page()
grab_cache_page_nowait()

read_cache_page_async()
read_cache_page()

add_to_page_cache()
remove_from_page_cache()

lock_page()
wait_on_page_writeback()
...

Do these inconsistencies exist for historical reasons or am I missing
something ?

If I am right, wouldn't it better for them to start with page_cache_
or something
similar.

Thanks
-- 
Francis

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-21  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21  7:18 page cache KPI Francis Moreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).