linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PAGE_CACHE_SIZE vs. PAGE_SIZE
@ 2013-01-18 15:57 Kirill A. Shutemov
  2013-01-31 22:40 ` Andrew Morton
  2013-02-19 10:32 ` Simon Jeons
  0 siblings, 2 replies; 4+ messages in thread
From: Kirill A. Shutemov @ 2013-01-18 15:57 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds, Al Viro
  Cc: linux-mm, linux-fsdevel, linux-kernel, Wu Fengguang, Jan Kara,
	Nick Piggin, Andrea Arcangeli, Andi Kleen, Kirill A. Shutemov

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

Hi,

PAGE_CACHE_* macros were introduced long time ago in hope to implement
page cache with larger chunks than one page in future.

In fact it was never done.

Some code paths assume PAGE_CACHE_SIZE <= PAGE_SIZE. E.g. we use
zero_user_segments() to clear stale parts of page on cache filling, but
the function is implemented only for individual small page.

It's unlikely that global switch to PAGE_CACHE_SIZE > PAGE_SIZE will never
happen since it will affect to much code at once.

I think support of larger chunks in page cache can be in implemented in
some form of THP with per-fs enabling.

Is it time to get rid of PAGE_CACHE_* macros?
I can prepare patchset if it's okay.

-- 
 Kirill A. Shutemov

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2013-02-19 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18 15:57 PAGE_CACHE_SIZE vs. PAGE_SIZE Kirill A. Shutemov
2013-01-31 22:40 ` Andrew Morton
2013-02-19 16:12   ` Michel Lespinasse
2013-02-19 10:32 ` Simon Jeons

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).