Skip to content

Page cache cleanup in anticipation of Large Blocksize support

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14Define functions for page cache handlinginclude/linux/pagemap.h+54 -03 replies
2/14Pagecache zeroing: zero_user_segment, zero_user_segments and zero_userfs/affs/file.c fs/buffer.c fs/direct-io.c +20 more+107 -1250 replies
3/14Use page_cache_xx function in mm/filemap.cmm/filemap.c+38 -380 replies
4/14Use page_cache_xxx in mm/page-writeback.cmm/page-writeback.c+3 -30 replies
5/14Use page_cache_xxx in mm/truncate.cmm/truncate.c+18 -170 replies
6/14Use page_cache_xxx in mm/rmap.cmm/rmap.c+9 -40 replies
7/14Use page_cache_xx in mm/filemap_xip.cmm/filemap_xip.c+14 -140 replies
8/14Use page_cache_xx in mm/migrate.cmm/migrate.c+1 -10 replies
9/14Use page_cache_xx in fs/libfs.cfs/libfs.c+10 -80 replies
10/14Use page_cache_xx in fs/sync.fs/sync.c+4 -40 replies
11/14Use page_cache_xx in fs/buffer.cfs/buffer.c+56 -430 replies
12/14Use page_cache_xxx in mm/mpage.cfs/mpage.c+16 -120 replies
13/14Use page_cache_xxx in mm/fadvise.cmm/fadvise.c+4 -40 replies
14/14Use page_cache_xx in fs/splice.cfs/splice.c+13 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 00/14] Page cache cleanup in anticipation of Large Blocksize support

This patchset cleans up the page cache handling by replacing open coded shifts and adds through inline function calls.

The ultimate goal is to replace all uses of PAGE_CACHE_xxx in the kernel through the use of these functions. All the functions take a mapping parameter. This is in anticipation of support for higher order pages in the page cache (like demonstrated by the Large Blocksize patchset).

It will take some time to get through all of the kernel source code. The patches here convert only the core VM. We can likely do much of the rest against Andrew's tree shortly before the merge window opens for 2.6.23.

This patchset should have no effect. Both PAGE_CACHE_xxx and page_cache-xxx functions can coexist while the conversion is in progress. As long as filesystems / device drivers only use PAGE_SIZE pages they can stay they are even if some file systems and devices start to support higher order pages.

Patchset against 2.6.22-rc4-mm2

After this patchset more cleanups will follow against filesystems. I have patches for 3 filesystems so far.